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,43 +27,25 @@ 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
57
37
- name : Cypress tests 🧪
58
38
uses : cypress-io/github-action@v5
59
39
with :
60
40
headless : true
61
41
config : video=false
62
42
browser : chrome
63
43
spec : cypress/e2e/broken-links.cy.ts
64
- build : node scripts/ build-pages-fixture.js
44
+ build : yarn cypress: build
65
45
start : yarn start
66
46
wait-on : ' http://localhost:3000'
47
+ env :
48
+ NEXT_PUBLIC_GITHUB_BRANCH : ${{ github.head_ref || github.ref_name }}
67
49
- name : Upload screenshots
68
50
uses : actions/upload-artifact@v4
69
51
if : failure()
@@ -76,25 +58,19 @@ jobs:
76
58
needs : [tests]
77
59
steps :
78
60
- 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
88
62
- name : Cypress tests 🧪
89
63
uses : cypress-io/github-action@v5
90
64
with :
91
65
headless : true
92
66
config : video=false
93
67
browser : chrome
94
68
spec : cypress/e2e/a11y.cy.ts
95
- build : node scripts/ build-pages-fixture.js
69
+ build : yarn cypress: build
96
70
start : yarn start
97
71
wait-on : ' http://localhost:3000'
72
+ env :
73
+ NEXT_PUBLIC_GITHUB_BRANCH : ${{ github.head_ref || github.ref_name }}
98
74
- name : Upload screenshots
99
75
uses : actions/upload-artifact@v4
100
76
if : failure()
@@ -107,25 +83,19 @@ jobs:
107
83
needs : [tests]
108
84
steps :
109
85
- 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
119
87
- name : Cypress tests 🧪
120
88
uses : cypress-io/github-action@v5
121
89
with :
122
90
headless : true
123
91
config : video=false
124
92
browser : chrome
125
93
spec : cypress/e2e/seo.cy.ts
126
- build : node scripts/ build-pages-fixture.js
94
+ build : yarn cypress: build
127
95
start : yarn start
128
96
wait-on : ' http://localhost:3000'
97
+ env :
98
+ NEXT_PUBLIC_GITHUB_BRANCH : ${{ github.head_ref || github.ref_name }}
129
99
- name : Upload screenshots
130
100
uses : actions/upload-artifact@v4
131
101
if : failure()
0 commit comments