Skip to content

Commit

Permalink
update test action to account for junit output, make junit output fil…
Browse files Browse the repository at this point in the history
…enames more unique
  • Loading branch information
Zac Boyd committed Jul 23, 2024
1 parent eb835a9 commit 1d8f11e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/actions/build-and-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ runs:
run: |
TESTFILES=$(find lib -name '*.spec.ts')
for file in $TESTFILES; do
yarn test $file
yarn test $file --ci --reporters=default --reporters=jest-junit
done
env:
JEST_JUNIT_OUTPUT_DIR: "./test-reports/jest"
JEST_JUNIT_OUTPUT_NAME: ${{ github.sha }}_node${{ inputs.node_version }}_results.xml
JEST_JUNIT_OUTPUT_NAME: "${{ github.sha }}_node${{ inputs.node_version }}_${filename}_results.xml"
JEST_JUNIT_CLASSNAME: "{filepath}"
JEST_JUNIT_UNIQUE_OUTPUT_NAME: "true"
shell: bash

- name: Test summary
Expand Down

0 comments on commit 1d8f11e

Please sign in to comment.