@@ -42,15 +42,15 @@ jobs:
42
42
with :
43
43
node-version : ' lts/*'
44
44
check-latest : true
45
- - name : jest
45
+ - name : Run tests
46
46
run :
47
47
echo $CHUNKS | jq '.[${{ matrix.chunk }}] | .[] | @text' | xargs npx jest --reporters=jest-junit
48
48
--reporters=default -c test/e2e/jest.config.js
49
49
env :
50
50
CHUNKS : ${{ needs.setup.outputs['test-chunks'] }}
51
51
NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_BOT_AUTH_TOKEN }}
52
52
NETLIFY_SITE_ID : 1d5a5c76-d445-4ae5-b694-b0d3f2e2c395
53
- - uses : phoenix-actions/test-reporting@v8
53
+ - uses : phoenix-actions/test-reporting@v10
54
54
if : ${{ always() }}
55
55
name : Report Test Results
56
56
id : test-report
@@ -63,26 +63,27 @@ jobs:
63
63
- name : Report URL
64
64
if : success() || failure()
65
65
run : |
66
- echo "url is ${{ steps.test-report.outputs.runHtmlUrl }}"
66
+ echo "${{ steps.test-report.outputs.runHtmlUrl }}"
67
67
68
- # - uses: actions/upload-artifact@v3 # upload test results
69
- # if: ${{ always() }}
70
- # with:
71
- # name: test-results-${{ matrix.chunk }}
72
- # path: reports/jest-*.xml
73
- # report:
74
- # runs-on: ubuntu-latest
75
- # if: ${{ always() }}
76
- # needs:
77
- # - test
78
- # steps:
79
- # - uses: actions/checkout@v3
80
- # - uses: actions/download-artifact@v3
81
- # with:
82
- # path: reports
83
- # - uses: dorny/test-reporter@v1
84
- # with:
85
- # name: Jest Tests
86
- # path: 'reports/**/*.xml' # Path to test results (inside artifact .zip)
87
- # max-annotations: 49 # Maximum number of annotations to be created
88
- # reporter: jest-junit # Format of test results
68
+ - uses : actions/upload-artifact@v3 # upload test results
69
+ if : ${{ always() }}
70
+ with :
71
+ name : test-results-${{ matrix.chunk }}
72
+ path : reports/jest-*.xml
73
+ report :
74
+ runs-on : ubuntu-latest
75
+ if : ${{ always() }}
76
+ needs :
77
+ - test
78
+ steps :
79
+ - uses : actions/checkout@v3
80
+ - uses : actions/download-artifact@v3
81
+ with :
82
+ path : reports
83
+ - uses : phoenix-actions/test-reporting@v10
84
+ with :
85
+ name : Jest Tests
86
+ output-to : ' step-summary'
87
+ path : ' reports/**/*.xml' # Path to test results (inside artifact .zip)
88
+ max-annotations : 49 # Maximum number of annotations to be created
89
+ reporter : jest-junit # Format of test results
0 commit comments