@@ -17,36 +17,11 @@ jobs:
1717 - uses : actions/setup-node@v1
1818 with :
1919 node-version : ' 18'
20- - uses : actions/cache@v2
21- id : yarn-cache
22- name : Cache npm deps
23- with :
24- path : |
25- node_modules
26- **/node_modules
27- key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
2820 - run : yarn install --frozen-lockfile
29- if : steps.yarn-cache.outputs.cache-hit != 'true'
30- - uses : actions/cache@v2
31- id : css-in-js-cache
32- name : Cache css in js files
33- with :
34- path : |
35- packages/module/src/css/*.(t|j|mj)s
36- key : ${{ runner.os }}-css-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('packages/module/src/css/*') }}
3721 - name : generate
3822 run : cd packages/module && yarn generate
39- if : steps.css-in-js-cache.outputs.cache-hit != 'true'
40- - uses : actions/cache@v2
41- id : dist
42- name : Cache dist
43- with :
44- path : |
45- packages/*/dist
46- key : ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
4723 - name : Build dist
4824 run : yarn build
49- if : steps.dist.outputs.cache-hit != 'true'
5025 lint :
5126 runs-on : ubuntu-latest
5227 env :
6338 - uses : actions/setup-node@v1
6439 with :
6540 node-version : ' 18'
66- - uses : actions/cache@v2
67- id : yarn-cache
68- name : Cache npm deps
69- with :
70- path : |
71- node_modules
72- **/node_modules
73- key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
7441 - run : yarn install --frozen-lockfile
75- if : steps.yarn-cache.outputs.cache-hit != 'true'
76- - uses : actions/cache@v2
77- id : lint-cache
78- name : Load lint cache
79- with :
80- path : ' .eslintcache'
81- key : ${{ runner.os }}-lint-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
8242 - name : ESLint
8343 run : yarn lint:js
8444 - name : MDLint
@@ -100,37 +60,11 @@ jobs:
10060 - uses : actions/setup-node@v1
10161 with :
10262 node-version : ' 18'
103- - uses : actions/cache@v2
104- id : yarn-cache
105- name : Cache npm deps
106- with :
107- path : |
108- node_modules
109- **/node_modules
110- ~/.cache/Cypress
111- key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
11263 - run : yarn install --frozen-lockfile
113- if : steps.yarn-cache.outputs.cache-hit != 'true'
114- - uses : actions/cache@v2
115- id : css-in-js-cache
116- name : Cache css in js files
117- with :
118- path : |
119- packages/module/src/css
120- key : ${{ runner.os }}-css-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('packages/module/src/css/*') }}
12164 - name : generate
12265 run : cd packages/module && yarn generate
123- if : steps.css-in-js-cache.outputs.cache-hit != 'true'
124- - uses : actions/cache@v2
125- id : dist
126- name : Cache dist
127- with :
128- path : |
129- packages/*/dist
130- key : ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
13166 - name : Build dist
13267 run : yarn build
133- if : steps.dist.outputs.cache-hit != 'true'
13468 - name : PF4 Jest Tests
13569 run : yarn test --maxWorkers=2
13670 test_a11y :
@@ -150,37 +84,11 @@ jobs:
15084 - uses : actions/setup-node@v1
15185 with :
15286 node-version : ' 18'
153- - uses : actions/cache@v2
154- id : yarn-cache
155- name : Cache npm deps
156- with :
157- path : |
158- node_modules
159- **/node_modules
160- ~/.cache/Cypress
161- key : ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
16287 - run : yarn install --frozen-lockfile
163- if : steps.yarn-cache.outputs.cache-hit != 'true'
164- - uses : actions/cache@v2
165- id : css-in-js-cache
166- name : Cache css in js files
167- with :
168- path : |
169- packages/module/src/css
170- key : ${{ runner.os }}-css-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('packages/module/src/css/*') }}
17188 - name : generate
17289 run : cd packages/module && yarn generate
173- if : steps.css-in-js-cache.outputs.cache-hit != 'true'
174- - uses : actions/cache@v2
175- id : dist
176- name : Cache dist
177- with :
178- path : |
179- packages/*/dist
180- key : ${{ runner.os }}-dist-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
18190 - name : Build dist
18291 run : yarn build
183- if : steps.dist.outputs.cache-hit != 'true'
18492 - name : Build docs
18593 run : yarn build:docs
18694 - name : A11y tests
0 commit comments