Skip to content

Commit

Permalink
ci: update Coveralls GitHub Action configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
microshine committed Jan 30, 2024
1 parent 396c665 commit b394b51
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,18 @@ jobs:
- name: Run test with coverage
run: npm run coverage

# Fixes problem with incorrect SF paths. See https://github.com/coverallsapp/github-action/issues/125
- name: Update lcov.info
run: |
sed -E "s/SF:(.+file:(.+))/SF:\2/g" ./coverage/lcov.info > coverage/lcov.new.info
mv ./coverage/lcov.new.info ./coverage/lcov.info
- name: Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@v1
with:
parallel: true
flag-name: run-${{ matrix.node-version }}

finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Close parallel build
uses: coverallsapp/github-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
carryforward: "run-20.x"

0 comments on commit b394b51

Please sign in to comment.