File tree Expand file tree Collapse file tree 6 files changed +14
-26
lines changed Expand file tree Collapse file tree 6 files changed +14
-26
lines changed Original file line number Diff line number Diff line change 1919 - name : Test
2020 working-directory : ./packages/${{ inputs.package_name }}
2121 shell : bash
22+ env :
23+ TAP_REPORTER : " junit"
24+ TAP_REPORTER_FILE : " test-results/junit.xml"
2225 run : |
2326 mkdir -p test-results
2427 npm run test
28+ - name : Publish test reports
29+ if : ${{ !cancelled() }}
30+ uses : EnricoMi/publish-unit-test-result-action@v2
31+ with :
32+ files : " ./packages/${{ inputs.package_name }}/test-results/**/*"
33+ check_name : " Test report for ${{ inputs.package_name }}"
34+ test_file_prefix : " +packages/${{ inputs.package_name }}/"
2535 - name : Store Test Results
2636 if : ${{ !cancelled() }}
2737 uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
Original file line number Diff line number Diff line change 8787 with :
8888 package_name : ${{ matrix.package }}
8989
90- report :
91- name : Test Report
92- runs-on : ubuntu-latest
93- needs : test
94- if : ${{ !cancelled() }}
95- permissions :
96- checks : write
97- pull-requests : write
98- contents : read
99- issues : read
100- steps :
101- - name : Download artifacts
102- uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
103- with :
104- path : artifacts
105- pattern : " *-test-output"
106- - name : List downloaded artifacts
107- run : ls -R ./artifacts/
108- - name : Publish test reports
109- uses : EnricoMi/publish-unit-test-result-action@v2
110- with :
111- files : " ./artifacts/*/**/*"
112-
11390 results :
11491 name : Results
11592 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 88# Testing
99/.nyc_output
1010/coverage
11+ /test-results
1112
1213# Build
1314/build
2627
2728# for act
2829.secrets
29-
30- # Generated test results
31- /test-results
Original file line number Diff line number Diff line change 99/.nyc_output
1010/.tap
1111/coverage
12+ /test-results
1213
1314# IDEA
1415/.idea
Original file line number Diff line number Diff line change 1111
1212# Test
1313/.tap
14+ /test-results
1415
1516# Editors
1617/#*
Original file line number Diff line number Diff line change 99/.nyc_output
1010/.tap
1111/coverage
12+ /test-results
1213
1314# Editor
1415/.idea
You can’t perform that action at this time.
0 commit comments