Merge pull request #47 from uselagoon/database-test-e2e #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: coverage | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: {} | |
| jobs: | |
| coverage: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.2.2 | |
| - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
| with: | |
| go-version: stable | |
| - name: Calculate coverage | |
| run: | | |
| go test -skip TestE2E -v -covermode=atomic -coverprofile=cover.out -coverpkg=./... ./... | |
| - name: Generage coverage badge | |
| uses: vladopajic/go-test-coverage@d4177aaab9307eb783516275d495c01254da2fb9 # v2.16.0 | |
| with: | |
| profile: cover.out | |
| local-prefix: github.com/${{ github.repository }} | |
| git-token: ${{ secrets.GITHUB_TOKEN }} | |
| # orphan branch for storing badges | |
| git-branch: badges |