Skip to content

Commit

Permalink
Merge pull request #2793 from EmilienM/coveralls
Browse files Browse the repository at this point in the history
ci/unit: switch to coverallsapp/github-action
  • Loading branch information
mandre committed Oct 6, 2023
2 parents 1fcb806 + 65b80e5 commit b3ff8bd
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/unit.yml
Expand Up @@ -6,7 +6,7 @@ permissions:
jobs:
test:
permissions:
checks: write # for shogo82148/actions-goveralls to create a new check based on the results
checks: write # for coverallsapp/github-action to create a new check based on the results
contents: read # for actions/checkout to fetch code
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -46,18 +46,22 @@ jobs:
./script/format
./script/unittest -v
- uses: shogo82148/actions-goveralls@v1
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
path-to-profile: cover.out
file: cover.out
flag-name: Go-${{ matrix.go-version }}
parallel: true

finish:
permissions:
checks: write # for shogo82148/actions-goveralls to create a new check based on the results
checks: write # for coverallsapp/github-action to create a new check based on the results
needs: test
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: Go-${{ join(matrix.go-version.*, '-') }}

0 comments on commit b3ff8bd

Please sign in to comment.