use separate job with specific permissions for coverage report

This commit is contained in:
Gabriel Augendre 2024-10-30 16:23:02 +01:00
parent db40be2dee
commit e1e94fa7d4
No known key found for this signature in database
GPG key ID: 0073D1CD7EC5A253

View file

@ -29,6 +29,13 @@ jobs:
run: go build -v ./... run: go build -v ./...
- name: Test - name: Test
run: make test run: make test
coverage:
name: coverage
permissions:
contents: write
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Update coverage report - name: Update coverage report
uses: ncruces/go-coverage-report@v0 uses: ncruces/go-coverage-report@v0
with: with: