Skip to content

Commit d43ac10

Browse files
committed
Upgrade github actions to pnpm
1 parent a3b1f38 commit d43ac10

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.github/workflows/build.yml

+12-14
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,31 @@ jobs:
44
build:
55
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
66
timeout-minutes: 15
7-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-22.04
88

99
strategy:
1010
matrix:
11-
adapter: ['react', 'vue2', 'vue3']
11+
adapter: ['react', 'vue2', 'vue3', 'svelte5']
12+
node-version: [20]
1213

1314
steps:
1415
- name: Checkout
15-
uses: actions/checkout@v1
16+
uses: actions/checkout@v4
1617

17-
- name: Setup Node.js
18-
uses: actions/setup-node@v2
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v3
1920
with:
20-
node-version: 16.15
21+
version: 9
2122

22-
- name: Cache node modules
23-
uses: actions/cache@v2
23+
- name: Setup Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v4
2425
with:
25-
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('package-lock.json') }}
26-
path: |
27-
~/.cache
28-
node_modules
29-
packages/${{ matrix.adapter }}/tests/node_modules
26+
node-version: ${{ matrix.node-version }}
27+
cache: 'pnpm'
3028

3129
- name: Build Inertia
3230
run: |
33-
npm install
31+
pnpm install
3432
cd packages/core && npm run build
3533
cd ../${{ matrix.adapter }} && npm run build
3634

0 commit comments

Comments
 (0)