Skip to content

Commit

Permalink
Merge pull request #127 from microsoft/users/aubreyquinn/coveralls
Browse files Browse the repository at this point in the history
added coveralls to project
  • Loading branch information
aubreyquinn authored Sep 27, 2024
2 parents a75e346 + a39bca4 commit 31c3ae5
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Coveralls GitHub Action

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
test_number:
- 1
- 2
steps:
- uses: actions/checkout@3
- name: Use Node.js 16.x
uses: actions/setup-node@3
with:
node-version: 16.x

- name: npm install
run: npm install

- name: Test ${{ matrix.test_number }}
run: make test-coverage-${{ matrix.test_number }}
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
flag-name: run-${{ join(matrix.*, '-') }}
parallel: true

finish:
needs: test
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "run-1,run-2"

0 comments on commit 31c3ae5

Please sign in to comment.