Skip to content

Commit 8e738ac

Browse files
committed
chore: update and add summary
1 parent 1e8b82a commit 8e738ac

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed

.github/workflows/e2e-next.yml

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ jobs:
4242
with:
4343
node-version: 'lts/*'
4444
check-latest: true
45-
- name: jest
45+
- name: Run tests
4646
run:
4747
echo $CHUNKS | jq '.[${{ matrix.chunk }}] | .[] | @text' | xargs npx jest --reporters=jest-junit
4848
--reporters=default -c test/e2e/jest.config.js
4949
env:
5050
CHUNKS: ${{ needs.setup.outputs['test-chunks'] }}
5151
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_BOT_AUTH_TOKEN }}
5252
NETLIFY_SITE_ID: 1d5a5c76-d445-4ae5-b694-b0d3f2e2c395
53-
- uses: phoenix-actions/test-reporting@v8
53+
- uses: phoenix-actions/test-reporting@v10
5454
if: ${{ always() }}
5555
name: Report Test Results
5656
id: test-report
@@ -63,26 +63,27 @@ jobs:
6363
- name: Report URL
6464
if: success() || failure()
6565
run: |
66-
echo "url is ${{ steps.test-report.outputs.runHtmlUrl }}"
66+
echo "${{ steps.test-report.outputs.runHtmlUrl }}"
6767
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

Comments
 (0)