Skip to content

Commit b5c182e

Browse files
committed
chore: use tar files for caching
1 parent e45533c commit b5c182e

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/unit-test.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
node-version: 18
2424
- name: Install
2525
run: npm ci
26-
- name: Build
27-
run: npm run compile
26+
- name: Build and pack artifacts
27+
run: npm run compile && tar -czvf nx-pack.tar.gz .nx
2828
- name: Upload build artifact
2929
uses: actions/upload-artifact@v4
3030
with:
3131
name: tests-build-cache-${{ github.run_number }}
32-
path: .nx
32+
path: nx-pack.tar.gz
3333
retention-days: 1
3434

3535
unit-test:
@@ -182,11 +182,10 @@ jobs:
182182
uses: actions/download-artifact@v4
183183
with:
184184
name: tests-build-cache-${{ github.run_number }}
185-
path: .nx
186-
- name: Check build cache
187-
run: ls -R .nx
188-
- name: Build
189-
run: npm run compile
185+
- name: Check dowloaded artifacts
186+
run: ls -la
187+
- name: Unpack artifacts and Build
188+
run: rm -rf .nx && tar -xvf nx-pack.tar.gz && npm run compile
190189
- name: Unit tests (Full)
191190
if: matrix.code-coverage
192191
run: npm run test

0 commit comments

Comments
 (0)