@@ -14,10 +14,6 @@ permissions:
1414 contents : read
1515 pull-requests : read
1616
17- env :
18- NX_NO_CLOUD : true
19- NX_CACHE_FILES : " modules/*/src/**/*.ts,modules/*/src/**/*.js,modules/*/*.json"
20-
2117jobs :
2218 unit-test :
2319 runs-on : ubuntu-latest
@@ -67,31 +63,16 @@ jobs:
6763 - name : Check In-Repo Package Versions
6864 run : yarn run check-versions
6965
70- - name : restore nx cache
71- id : nx-cache
72- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
73- if : " !contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')"
74- with :
75- path : |
76- .nx/cache
77- modules/*/dist
78- key : ${{ runner.os }}-nx-${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }}-${{ hashFiles(env.NX_CACHE_FILES) }}
79- restore-keys : |
80- ${{ runner.os }}-nx-${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }}-
81- ${{ runner.os }}-nx-${{ matrix.node-version }}-
82-
8366 - name : build packages
8467 env :
8568 # Workaround for https://github.com/nodejs/node/issues/51555
8669 DISABLE_V8_COMPILE_CACHE : ' 1'
87- NX_SKIP_NX_CACHE : ${{ contains(github.event.pull_request.labels.*.name, 'SKIP_CACHE') && 'true' || '' }}
8870 run : yarn run postinstall
8971
9072 - name : Unit Test
9173 run : yarn run unit-test-changed
9274 env :
9375 BITGOJS_TEST_PASSWORD : ${{ secrets.BITGOJS_TEST_PASSWORD }}
94- NX_SKIP_NX_CACHE : ${{ contains(github.event.pull_request.labels.*.name, 'SKIP_CACHE') && 'true' || '' }}
9576
9677 # - name: Upload Code Coverage
9778 # run: |
@@ -177,24 +158,10 @@ jobs:
177158 if : steps.lerna-cache.outputs.cache-hit != 'true'
178159 run : yarn install --with-frozen-lockfile --ignore-scripts
179160
180- - name : restore nx cache
181- id : nx-cache
182- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
183- if : " !contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')"
184- with :
185- path : |
186- .nx/cache
187- modules/*/dist
188- key : ${{ runner.os }}-nx-license-${{ hashFiles('yarn.lock') }}-${{ hashFiles(env.NX_CACHE_FILES) }}
189- restore-keys : |
190- ${{ runner.os }}-nx-license-${{ hashFiles('yarn.lock') }}-
191- ${{ runner.os }}-nx-license-
192-
193161 - name : build packages
194162 env :
195163 # Workaround for https://github.com/nodejs/node/issues/51555
196164 DISABLE_V8_COMPILE_CACHE : ' 1'
197- NX_SKIP_NX_CACHE : ${{ contains(github.event.pull_request.labels.*.name, 'SKIP_CACHE') && 'true' || '' }}
198165 run : yarn run postinstall
199166
200167 - name : Run Fossa Analysis
@@ -284,19 +251,6 @@ jobs:
284251 if : steps.lerna-cache.outputs.cache-hit != 'true' || contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')
285252 run : yarn install --with-frozen-lockfile
286253
287- - name : restore nx cache
288- id : nx-cache
289- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
290- if : " !contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')"
291- with :
292- path : |
293- .nx/cache
294- modules/*/dist
295- key : ${{ runner.os }}-nx-browser-${{ hashFiles('yarn.lock') }}-${{ hashFiles(env.NX_CACHE_FILES) }}
296- restore-keys : |
297- ${{ runner.os }}-nx-browser-${{ hashFiles('yarn.lock') }}-
298- ${{ runner.os }}-nx-browser-
299-
300254 - name : build packages
301255 if : steps.lerna-cache.outputs.cache-hit == 'true'
302256 env :
@@ -308,7 +262,6 @@ jobs:
308262 run : yarn run browser-tests
309263 env :
310264 BITGOJS_TEST_PASSWORD : ${{ secrets.BITGOJS_TEST_PASSWORD }}
311- NX_SKIP_NX_CACHE : ${{ contains(github.event.pull_request.labels.*.name, 'SKIP_CACHE') && 'true' || '' }}
312265
313266 docker-build :
314267 runs-on : ubuntu-latest
0 commit comments