Skip to content

Commit

Permalink
Collect results before we do any reporting
Browse files Browse the repository at this point in the history
Signed-off-by: Randy Tarampi <rt@randytarampi.ca>
  • Loading branch information
randytarampi committed Apr 23, 2022
1 parent aef6d54 commit de7d77b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Expand Up @@ -144,12 +144,19 @@ jobs:
NODE_ENV: test
run: |
yarn run kill --scope @randy.tarampi/service
- name: Collect results
if: always()
env:
NODE_ENV: test
run: |
yarn run pretest:collect
yarn run cover:collect
- name: Report results to CodeClimate
if: always()
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
run: |
$PWD/cc-test-reporter after-build --exit-code $(if [[ "${{ steps.test-actual.outcome.success }}" == 'success' ]]; then echo '0'; else echo '1'; fi;) || true
$PWD/cc-test-reporter after-build --exit-code=$(if [[ "${{ steps.test-actual.outcome.success }}" == 'success' ]]; then echo '0'; else echo '1'; fi;) || true
shell: bash
- name: Report results to Check Run Reporter (pretest)
if: always()
Expand All @@ -165,13 +172,6 @@ jobs:
token: ${{ secrets.CHECK_RUN_REPORTER_TOKEN }}
report: test-results.xml
label: test
- name: Collect coverage
if: always()
env:
NODE_ENV: test
run: |
yarn run pretest:collect
yarn run cover:collect
- name: Report coverage to Coveralls
if: always()
uses: coverallsapp/github-action@1.1.3
Expand Down

0 comments on commit de7d77b

Please sign in to comment.