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

Commit 2b6bcaa

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

File tree

1 file changed

+16
-40
lines changed

1 file changed

+16
-40
lines changed

.github/workflows/test.yaml

Lines changed: 16 additions & 40 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,33 +27,17 @@ 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
37+
- name: Build Website
38+
run: yarn build
39+
env:
40+
NEXT_PUBLIC_GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }}
5741
- name: Cypress tests 🧪
5842
uses: cypress-io/github-action@v5
5943
with:
@@ -76,15 +60,11 @@ jobs:
7660
needs: [tests]
7761
steps:
7862
- 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 }}
63+
uses: actions/checkout@v3
64+
- name: Build Website
65+
run: yarn build
66+
env:
67+
NEXT_PUBLIC_GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }}
8868
- name: Cypress tests 🧪
8969
uses: cypress-io/github-action@v5
9070
with:
@@ -107,15 +87,11 @@ jobs:
10787
needs: [tests]
10888
steps:
10989
- 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 }}
90+
uses: actions/checkout@v3
91+
- name: Build Website
92+
run: yarn build
93+
env:
94+
NEXT_PUBLIC_GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }}
11995
- name: Cypress tests 🧪
12096
uses: cypress-io/github-action@v5
12197
with:

0 commit comments

Comments
 (0)