17
17
steps :
18
18
- uses : actions/checkout@v4
19
19
- run : corepack enable
20
- - name : Get yarn cache directory path
21
- id : yarn-cache-dir-path
22
- run : echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
23
- - uses : actions/cache@v4
24
- id : yarn-cache
20
+ - uses : actions/setup-node@v4
25
21
with :
26
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
27
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
28
- restore-keys : |
29
- ${{ runner.os }}-yarn-
22
+ cache : ' yarn'
30
23
- run : yarn --immutable
31
24
- run : yarn ci
32
25
@@ -36,16 +29,12 @@ jobs:
36
29
steps :
37
30
- uses : actions/checkout@v4
38
31
- run : corepack enable
39
- - name : Get yarn cache directory path
40
- id : yarn-cache-dir-path
41
- run : echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
42
- - uses : actions/cache@v4
43
- id : yarn-cache
32
+ - uses : actions/setup-node@v4
44
33
with :
45
- path : ${{ steps. yarn-cache-dir-path.outputs.dir }}
46
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
47
- restore-keys : |
48
- ${{ runner.os }}-yarn-
34
+ cache : ' yarn'
35
+ cache-dependency-path : |
36
+ yarn.lock
37
+ **/package.json
49
38
- run : yarn --immutable && yarn build
50
39
- name : Check if js dist files are current
51
40
id : changes
@@ -134,16 +123,12 @@ jobs:
134
123
steps :
135
124
- uses : actions/checkout@v4
136
125
- run : corepack enable
137
- - name : Get yarn cache directory path
138
- id : yarn-cache-dir-path
139
- run : echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
140
- - uses : actions/cache@v4
141
- id : yarn-cache
126
+ - uses : actions/setup-node@v4
142
127
with :
143
- path : ${{ steps. yarn-cache-dir-path.outputs.dir }}
144
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
145
- restore-keys : |
146
- ${{ runner.os }}-yarn-
128
+ cache : ' yarn'
129
+ cache-dependency-path : |
130
+ yarn.lock
131
+ **/package.json
147
132
- run : yarn --immutable
148
133
- run : yarn playwright install
149
134
- run : yarn test
0 commit comments