Skip to content

Commit 03f1938

Browse files
Testing github action
1 parent 14d0986 commit 03f1938

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

.github/workflows/deploy-report.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ concurrency:
1717
cancel-in-progress: false
1818

1919
jobs:
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:
@@ -38,6 +34,23 @@ jobs:
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
@@ -48,7 +61,7 @@ jobs:
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

.github/workflows/publish-report.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ concurrency:
1717
cancel-in-progress: false
1818

1919
jobs:
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:
@@ -34,23 +38,6 @@ jobs:
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
@@ -61,7 +48,7 @@ jobs:
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

0 commit comments

Comments
 (0)