Skip to content

Commit 8900a76

Browse files
committed
chore: cleanup nx before downloading artifact
1 parent 057e093 commit 8900a76

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/unit-test.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/upload-artifact@v4
3030
with:
3131
name: tests-build-cache-${{ github.run_number }}
32-
path: .nx/cache
32+
path: .nx
3333
retention-days: 1
3434

3535
unit-test:
@@ -178,11 +178,13 @@ jobs:
178178
run: mysql --user=root --password=${MYSQL_ROOT_PASSWORD} --host=${MYSQL_HOST} --port=${MYSQL_PORT} -e "SET GLOBAL log_output='TABLE'; SET GLOBAL general_log = 1;" mysql
179179
- name: Install
180180
run: npm ci
181+
- name: Prepare build cache
182+
run: rm -rf .nx
181183
- name: Download Build Artifacts
182184
uses: actions/download-artifact@v4
183185
with:
184186
name: tests-build-cache-${{ github.run_number }}
185-
path: .nx/cache
187+
path: .nx
186188
- name: Build
187189
run: npm run compile
188190
- name: Unit tests (Full)
@@ -219,11 +221,13 @@ jobs:
219221
node-version: ${{ matrix.node }}
220222
- name: Install
221223
run: npm ci
224+
- name: Prepare build cache
225+
run: rm -rf .nx
222226
- name: Download Build Artifacts
223227
uses: actions/download-artifact@v4
224228
with:
225229
name: tests-build-cache-${{ github.run_number }}
226-
path: .nx/cache
230+
path: .nx
227231
- name: Build
228232
run: npm run compile
229233
- name: Unit tests

0 commit comments

Comments
 (0)