Skip to content

Commit 2cc7301

Browse files
committed
chore: cache npm in action
1 parent de3f8ea commit 2cc7301

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/e2e-appdir.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ jobs:
3535
test-file: ${{ fromJson(needs.setup.outputs['test-files']) }}
3636
steps:
3737
- uses: actions/checkout@v3
38+
- uses: actions/setup-node@v2
39+
with:
40+
node-version: '16'
41+
cache: 'npm'
3842
- run: npm install
3943
- name: Run tests
4044
run: npx jest --reporters=jest-junit --reporters=default -c test/e2e/jest.config.all.js ${{ matrix.test-file }}

.github/workflows/e2e-next.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ jobs:
3535
test-file: ${{ fromJson(needs.setup.outputs['test-files']) }}
3636
steps:
3737
- uses: actions/checkout@v3
38+
- uses: actions/setup-node@v2
39+
with:
40+
node-version: '16'
41+
cache: 'npm'
3842
- run: npm install
3943
- name: Run tests
4044
run: npx jest --reporters=jest-junit --reporters=default -c test/e2e/jest.config.all.js ${{ matrix.test-file }}

0 commit comments

Comments
 (0)