@@ -14,10 +14,11 @@ jobs:
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
21
+ - uses : jongwooo/next-cache@v1
21
22
- name : Install dependencies
22
23
uses : cypress-io/github-action@v5
23
24
with :
@@ -31,29 +32,14 @@ jobs:
31
32
run : yarn build
32
33
env :
33
34
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
35
43
36
test-broken-links :
44
37
runs-on : ubuntu-latest
45
38
needs : [tests]
46
39
steps :
47
40
- 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 }}
41
+ uses : actions/checkout@v3
42
+ - uses : jongwooo/next-cache@v1
57
43
- name : Cypress tests 🧪
58
44
uses : cypress-io/github-action@v5
59
45
with :
76
62
needs : [tests]
77
63
steps :
78
64
- 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 }}
65
+ uses : actions/checkout@v3
66
+ - uses : jongwooo/next-cache@v1
88
67
- name : Cypress tests 🧪
89
68
uses : cypress-io/github-action@v5
90
69
with :
@@ -107,15 +86,8 @@ jobs:
107
86
needs : [tests]
108
87
steps :
109
88
- 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 }}
89
+ uses : actions/checkout@v3
90
+ - uses : jongwooo/next-cache@v1
119
91
- name : Cypress tests 🧪
120
92
uses : cypress-io/github-action@v5
121
93
with :
0 commit comments