Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit cc05a3b

Browse files
committed
don't cache next builds
1 parent 7f5a2b7 commit cc05a3b

File tree

1 file changed

+13
-43
lines changed

1 file changed

+13
-43
lines changed

.github/workflows/test.yaml

Lines changed: 13 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
NEXT_PUBLIC_VERCEL_URL: nitric.io
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818
- uses: actions/setup-node@v3
1919
with:
2020
node-version: 18
@@ -27,43 +27,25 @@ jobs:
2727
run: yarn format:check
2828
- name: Run spellcheck test
2929
run: yarn test:spellcheck
30-
- name: Build Website
31-
run: yarn build
32-
env:
33-
NEXT_PUBLIC_GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }}
34-
- name: Cache Build
35-
uses: actions/cache@v2
36-
id: restore-build
37-
with:
38-
path: |
39-
.next
40-
public
41-
key: ci-docs-test-${{ github.sha }}
4230

4331
test-broken-links:
4432
runs-on: ubuntu-latest
4533
needs: [tests]
4634
steps:
4735
- name: Checkout
48-
uses: actions/checkout@v2
49-
- name: Restore Build
50-
uses: actions/cache@v2
51-
id: restore-build
52-
with:
53-
path: |
54-
.next
55-
public
56-
key: ci-docs-test-${{ github.sha }}
36+
uses: actions/checkout@v3
5737
- name: Cypress tests 🧪
5838
uses: cypress-io/github-action@v5
5939
with:
6040
headless: true
6141
config: video=false
6242
browser: chrome
6343
spec: cypress/e2e/broken-links.cy.ts
64-
build: node scripts/build-pages-fixture.js
44+
build: yarn build
6545
start: yarn start
6646
wait-on: 'http://localhost:3000'
47+
env:
48+
NEXT_PUBLIC_GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }}
6749
- name: Upload screenshots
6850
uses: actions/upload-artifact@v4
6951
if: failure()
@@ -76,25 +58,19 @@ jobs:
7658
needs: [tests]
7759
steps:
7860
- name: Checkout
79-
uses: actions/checkout@v2
80-
- name: Restore Build
81-
uses: actions/cache@v2
82-
id: restore-build
83-
with:
84-
path: |
85-
.next
86-
public
87-
key: ci-docs-test-${{ github.sha }}
61+
uses: actions/checkout@v3
8862
- name: Cypress tests 🧪
8963
uses: cypress-io/github-action@v5
9064
with:
9165
headless: true
9266
config: video=false
9367
browser: chrome
9468
spec: cypress/e2e/a11y.cy.ts
95-
build: node scripts/build-pages-fixture.js
69+
build: yarn build
9670
start: yarn start
9771
wait-on: 'http://localhost:3000'
72+
env:
73+
NEXT_PUBLIC_GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }}
9874
- name: Upload screenshots
9975
uses: actions/upload-artifact@v4
10076
if: failure()
@@ -107,25 +83,19 @@ jobs:
10783
needs: [tests]
10884
steps:
10985
- name: Checkout
110-
uses: actions/checkout@v2
111-
- name: Restore Build
112-
uses: actions/cache@v2
113-
id: restore-build
114-
with:
115-
path: |
116-
.next
117-
public
118-
key: ci-docs-test-${{ github.sha }}
86+
uses: actions/checkout@v3
11987
- name: Cypress tests 🧪
12088
uses: cypress-io/github-action@v5
12189
with:
12290
headless: true
12391
config: video=false
12492
browser: chrome
12593
spec: cypress/e2e/seo.cy.ts
126-
build: node scripts/build-pages-fixture.js
94+
build: yarn build
12795
start: yarn start
12896
wait-on: 'http://localhost:3000'
97+
env:
98+
NEXT_PUBLIC_GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }}
12999
- name: Upload screenshots
130100
uses: actions/upload-artifact@v4
131101
if: failure()

0 commit comments

Comments
 (0)