File tree Expand file tree Collapse file tree 2 files changed +25
-25
lines changed
Expand file tree Collapse file tree 2 files changed +25
-25
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,7 @@ concurrency:
1717 cancel-in-progress : false
1818
1919jobs :
20- deploy :
21- environment :
22- name : github-pages
23- url : ${{ steps.deployment.outputs.page_url }}
24-
20+ test :
2521 runs-on : ubuntu-latest
2622
2723 steps :
3834
3935 - name : Run Sanity Tests And Generate Report
4036 run : npm run test:sanity
37+
38+ - name : Upload Test Results
39+ uses : actions/upload-artifact@v4
40+ with :
41+ name : my-artifact
42+ path : test-results/report
43+
44+ # Single deploy job since we're just deploying
45+ deploy :
46+ needs : test # Ensure deploy only runs after tests complete successfully
47+ environment :
48+ name : github-pages
49+ url : ${{ steps.deployment.outputs.page_url }}
50+ runs-on : ubuntu-latest
51+ steps :
52+ - name : Checkout
53+ uses : actions/checkout@v4
4154
4255 - name : Setup Pages
4356 uses : actions/configure-pages@v3
4861 - name : Upload Artifact
4962 uses : actions/upload-pages-artifact@v3
5063 with :
51- path : test-results/report
64+ path : my-artifact
5265
5366 - name : Deploy to GitHub Pages
5467 id : deployment
Original file line number Diff line number Diff line change @@ -17,7 +17,11 @@ concurrency:
1717 cancel-in-progress : false
1818
1919jobs :
20- test :
20+ deploy :
21+ environment :
22+ name : github-pages
23+ url : ${{ steps.deployment.outputs.page_url }}
24+
2125 runs-on : ubuntu-latest
2226
2327 steps :
3438
3539 - name : Run Sanity Tests And Generate Report
3640 run : npm run test:sanity
37-
38- - name : Upload Test Results
39- uses : actions/upload-artifact@v4
40- with :
41- name : my-artifact
42- path : test-results/report
43-
44- # Single deploy job since we're just deploying
45- deploy :
46- needs : test # Ensure deploy only runs after tests complete successfully
47- environment :
48- name : github-pages
49- url : ${{ steps.deployment.outputs.page_url }}
50- runs-on : ubuntu-latest
51- steps :
52- - name : Checkout
53- uses : actions/checkout@v4
5441
5542 - name : Setup Pages
5643 uses : actions/configure-pages@v3
6148 - name : Upload Artifact
6249 uses : actions/upload-pages-artifact@v3
6350 with :
64- path : my-artifact
51+ path : test-results/report
6552
6653 - name : Deploy to GitHub Pages
6754 id : deployment
You can’t perform that action at this time.
0 commit comments