@@ -18,13 +18,20 @@ jobs:
1818 node-version-file : " package.json"
1919 - name : Use dependency cache
2020 uses : actions/cache@v3
21- id : cache
21+ id : dependency- cache
2222 with :
2323 path : " **/node_modules"
2424 key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
25+ - name : Use build cache
26+ uses : actions/cache@v3
27+ with :
28+ path : .nxcache
29+ key : build-cache-key-${{ runner.os }}-${{ github.run_id }}
30+ restore-keys : |
31+ build-cache-key-${{ runner.os }}-
2532 - name : Install dependencies
2633 run : yarn --frozen-lockfile --ignore-engines
27- if : steps.cache.outputs.cache-hit != 'true'
34+ if : steps.dependency- cache.outputs.cache-hit != 'true'
2835 - run : yarn build
2936
3037 type-check :
@@ -38,13 +45,20 @@ jobs:
3845 node-version-file : " package.json"
3946 - name : Use dependency cache
4047 uses : actions/cache@v3
41- id : cache
48+ id : dependency- cache
4249 with :
4350 path : " **/node_modules"
4451 key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
52+ - name : Use build cache
53+ uses : actions/cache@v3
54+ with :
55+ path : .nxcache
56+ key : build-cache-key-${{ runner.os }}-${{ github.run_id }}
57+ restore-keys : |
58+ build-cache-key-${{ runner.os }}-
4559 - name : Install dependencies
4660 run : yarn --frozen-lockfile --ignore-engines
47- if : steps.cache.outputs.cache-hit != 'true'
61+ if : steps.dependency- cache.outputs.cache-hit != 'true'
4862 - run : yarn check:types
4963
5064 formatting-check :
@@ -57,13 +71,20 @@ jobs:
5771 node-version-file : " package.json"
5872 - name : Use dependency cache
5973 uses : actions/cache@v3
60- id : cache
74+ id : dependency- cache
6175 with :
6276 path : " **/node_modules"
6377 key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
78+ - name : Use build cache
79+ uses : actions/cache@v3
80+ with :
81+ path : .nxcache
82+ key : build-cache-key-${{ runner.os }}-${{ github.run_id }}
83+ restore-keys : |
84+ build-cache-key-${{ runner.os }}-
6485 - name : Install dependencies
6586 run : yarn --frozen-lockfile --ignore-engines
66- if : steps.cache.outputs.cache-hit != 'true'
87+ if : steps.dependency- cache.outputs.cache-hit != 'true'
6788 - run : yarn check:formatting
6889
6990 test-unit :
@@ -77,13 +98,20 @@ jobs:
7798 node-version-file : " package.json"
7899 - name : Use dependency cache
79100 uses : actions/cache@v3
80- id : cache
101+ id : dependency- cache
81102 with :
82103 path : " **/node_modules"
83104 key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
105+ - name : Use build cache
106+ uses : actions/cache@v3
107+ with :
108+ path : .nxcache
109+ key : build-cache-key-${{ runner.os }}-${{ github.run_id }}
110+ restore-keys : |
111+ build-cache-key-${{ runner.os }}-
84112 - name : Install dependencies
85113 run : yarn --frozen-lockfile --ignore-engines
86- if : steps.cache.outputs.cache-hit != 'true'
114+ if : steps.dependency- cache.outputs.cache-hit != 'true'
87115 - run : yarn test:unit
88116
89117 test-integration :
@@ -110,13 +138,20 @@ jobs:
110138 node-version : ${{ matrix.node-version }}
111139 - name : Use dependency cache
112140 uses : actions/cache@v3
113- id : cache
141+ id : dependency- cache
114142 with :
115143 path : " **/node_modules"
116144 key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
145+ - name : Use build cache
146+ uses : actions/cache@v3
147+ with :
148+ path : .nxcache
149+ key : build-cache-key-${{ runner.os }}-${{ github.run_id }}
150+ restore-keys : |
151+ build-cache-key-${{ runner.os }}-
117152 - name : Install dependencies
118153 run : yarn --frozen-lockfile --ignore-engines
119- if : steps.cache.outputs.cache-hit != 'true'
154+ if : steps.dependency- cache.outputs.cache-hit != 'true'
120155 - run : yarn test:integration
121156
122157 test-e2e :
@@ -136,13 +171,20 @@ jobs:
136171 - uses : volta-cli/action@v3
137172 - name : Use dependency cache
138173 uses : actions/cache@v3
139- id : cache
174+ id : dependency- cache
140175 with :
141176 path : " **/node_modules"
142177 key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
178+ - name : Use build cache
179+ uses : actions/cache@v3
180+ with :
181+ path : .nxcache
182+ key : build-cache-key-${{ runner.os }}-${{ github.run_id }}
183+ restore-keys : |
184+ build-cache-key-${{ runner.os }}-
143185 - name : Install dependencies
144186 run : yarn --frozen-lockfile --ignore-engines
145- if : steps.cache.outputs.cache-hit != 'true'
187+ if : steps.dependency- cache.outputs.cache-hit != 'true'
146188 - run : yarn test:e2e
147189
148190 lint :
@@ -156,13 +198,20 @@ jobs:
156198 node-version-file : " package.json"
157199 - name : Use dependency cache
158200 uses : actions/cache@v3
159- id : cache
201+ id : dependency- cache
160202 with :
161203 path : " **/node_modules"
162204 key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
205+ - name : Use build cache
206+ uses : actions/cache@v3
207+ with :
208+ path : .nxcache
209+ key : build-cache-key-${{ runner.os }}-${{ github.run_id }}
210+ restore-keys : |
211+ build-cache-key-${{ runner.os }}-
163212 - name : Install dependencies
164213 run : yarn --frozen-lockfile --ignore-engines
165- if : steps.cache.outputs.cache-hit != 'true'
214+ if : steps.dependency- cache.outputs.cache-hit != 'true'
166215 - run : yarn lint
167216
168217 artifacts :
0 commit comments