Skip to content

Commit 6acd051

Browse files
committed
chore: add cache to TAV workflow
1 parent f062d99 commit 6acd051

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/test-all-versions.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,32 @@ on:
1313
type: string
1414

1515
jobs:
16+
build:
17+
strategy:
18+
fail-fast: false
19+
runs-on: ubuntu-latest
20+
env:
21+
NPM_CONFIG_UNSAFE_PERM: true
22+
NODE_OPTIONS: --max-old-space-size=4096
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
- uses: actions/setup-node@v4
29+
with:
30+
node-version: 16
31+
- name: Install
32+
run: npm ci
33+
- name: Build
34+
run: npm run compile
35+
- name: Upload Build Artifacts
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: build-cache-${{ github.run_number }}
39+
path: node_modules/.cache/nx
40+
retention-days: 1
41+
1642
tav:
1743
name: Run test-all-versions
1844
strategy:
@@ -120,6 +146,11 @@ jobs:
120146
run: npm install -g npm@9 # npm@9 supports node >=14.17.0
121147
- name: Install
122148
run: npm ci
149+
- name: Download Build Artifacts
150+
uses: actions/download-artifact@v4
151+
with:
152+
name: build-cache-${{ github.run_number }}
153+
path: node_modules/.cache/nx
123154
- name: Build
124155
run: npm run compile
125156
- name: Run test-all-versions

.github/workflows/unit-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
run: npm install -g npm@9 # npm@9 supports node >=14.17.0
156156
- name: Install
157157
run: npm ci
158-
- name: Dowload Artifacts
158+
- name: Download Build Artifacts
159159
uses: actions/download-artifact@v4
160160
with:
161161
name: build-cache-${{ github.run_number }}

0 commit comments

Comments
 (0)