File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,13 @@ jobs:
2525 run : npm ci
2626 - name : Build
2727 run : npm run compile
28+ - name : Snapshot build state
29+ run : tar -czvf nx-snapshot.tar.gz ./.nx
2830 - name : Upload build artifact
2931 uses : actions/upload-artifact@v4
3032 with :
3133 name : tests-build-cache-${{ github.run_number }}
32- path : .nx
34+ path : nx-snapshot.tar.gz
3335 retention-days : 1
3436
3537 unit-test :
@@ -184,7 +186,9 @@ jobs:
184186 uses : actions/download-artifact@v4
185187 with :
186188 name : tests-build-cache-${{ github.run_number }}
187- path : .nx
189+ path : nx-snapshot.tar.gz
190+ - name : Restore build snapshot
191+ run : rm -rf .nx && tar -xvzf nx-snapshot.tar.gz
188192 - name : Build
189193 run : npm run compile
190194 - name : Unit tests (Full)
You can’t perform that action at this time.
0 commit comments