14
14
NEXT_PUBLIC_VERCEL_URL : nitric.io
15
15
steps :
16
16
- name : Checkout
17
- uses : actions/checkout@v2
17
+ uses : actions/checkout@v3
18
18
- uses : actions/setup-node@v3
19
19
with :
20
20
node-version : 18
@@ -27,33 +27,17 @@ jobs:
27
27
run : yarn format:check
28
28
- name : Run spellcheck test
29
29
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 }}
42
30
43
31
test-broken-links :
44
32
runs-on : ubuntu-latest
45
33
needs : [tests]
46
34
steps :
47
35
- 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 }}
57
41
- name : Cypress tests 🧪
58
42
uses : cypress-io/github-action@v5
59
43
with :
@@ -76,15 +60,11 @@ jobs:
76
60
needs : [tests]
77
61
steps :
78
62
- 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 }}
88
68
- name : Cypress tests 🧪
89
69
uses : cypress-io/github-action@v5
90
70
with :
@@ -107,15 +87,11 @@ jobs:
107
87
needs : [tests]
108
88
steps :
109
89
- 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 }}
119
95
- name : Cypress tests 🧪
120
96
uses : cypress-io/github-action@v5
121
97
with :
0 commit comments