Skip to content

Commit

Permalink
Reinstate CI unit test coverage (#2274)
Browse files Browse the repository at this point in the history
* Unit test coverage

* rename upload step

* use my favorite test reporters

text reporter provides output in ci log
html-spa reporter provides friendly and interactive output

* upload coverage even if unit tests fail
  • Loading branch information
rotu authored Mar 15, 2023
1 parent 4f9db28 commit d74a5bc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ jobs:
run:
nohup Xvfb &
echo "DISPLAY=:0" >> $GITHUB_ENV
- run: npm run jest-ci -- --selectProjects unit
- run: npm run jest-ci -- --coverage --coverageReporters text html-spa --selectProjects unit
- name: Upload unit test coverage
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: unit-test-coverage
path: ${{ github.workspace }}/coverage
- run: npm run build-dev
if: success() || failure()
- run: npm run test-render
Expand All @@ -83,4 +89,4 @@ jobs:
- run: npm ci
- run: npm run build-dist
- run: npm run jest-ci -- --selectProjects build
if: success() || failure()
if: success() || failure()

0 comments on commit d74a5bc

Please sign in to comment.