Skip to content

Commit 4dc292f

Browse files
committed
add cache to node setup and windows to e2e matrix
1 parent 363ace4 commit 4dc292f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- uses: actions/setup-node@v4
2323
with:
2424
node-version: ${{ matrix.node-version }}
25+
cache: 'npm'
2526
- run: npm install
2627
- run: npm test
2728

@@ -33,6 +34,7 @@ jobs:
3334
with:
3435
node-version: 'lts/*'
3536
check-latest: true
37+
cache: 'npm'
3638
- run: npm install
3739
- run: npm run lint
3840

@@ -44,6 +46,7 @@ jobs:
4446
with:
4547
node-version: 'lts/*'
4648
check-latest: true
49+
cache: 'npm'
4750
- run: npm install
4851
- run: npm run format:check
4952

@@ -55,6 +58,7 @@ jobs:
5558
- uses: actions/setup-node@v4
5659
with:
5760
node-version: 'lts/*'
61+
cache: 'npm'
5862
- run: npm install
5963
- run: npm run test:remote
6064

@@ -65,6 +69,7 @@ jobs:
6569
- uses: actions/setup-node@v4
6670
with:
6771
node-version: 'lts/*'
72+
cache: 'npm'
6873
- run: npm install
6974
- run: npm run typecheck
7075

@@ -75,6 +80,7 @@ jobs:
7580
- uses: actions/setup-node@v4
7681
with:
7782
node-version: 'lts/*'
83+
cache: 'npm'
7884
- run: npm install
7985
- run: npm run build
8086
- name: Upload build results
@@ -98,11 +104,13 @@ jobs:
98104
- 20
99105
os:
100106
- ubuntu-latest
107+
- windows-latest
101108
steps:
102109
- uses: actions/checkout@v4
103110
- uses: actions/setup-node@v4
104111
with:
105112
node-version: ${{ matrix.node-version }}
113+
cache: 'npm'
106114
- name: Download build results
107115
uses: actions/download-artifact@v4
108116
with:

0 commit comments

Comments
 (0)