Skip to content

Commit e5c6bb7

Browse files
committed
chore: setup cache in test jobs
1 parent 858fa77 commit e5c6bb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/unit-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
- name: Install
149149
run: npm ci
150150
- name: Build
151-
run: npm run compile
151+
run: NX_CACHE_DIRECTORY=$(npm get cache)/$GITHUB_REF_NAME npm run compile
152152
- name: Unit tests (Full)
153153
if: matrix.code-coverage
154154
run: npm run test
@@ -187,7 +187,7 @@ jobs:
187187
- name: Install
188188
run: npm ci
189189
- name: Build
190-
run: npm run compile
190+
run: NX_CACHE_DIRECTORY=$(npm get cache)/$GITHUB_REF_NAME npm run compile
191191
- name: Unit tests
192192
run: npm run test:browser
193193
- name: Report Coverage

0 commit comments

Comments
 (0)