Skip to content

Commit 449fd3c

Browse files
committed
chore: use tar.gz file for build snapshots
1 parent 8900a76 commit 449fd3c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/unit-test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)