Skip to content

Commit c504a6f

Browse files
committed
ci: run CI workflow on Node version from matrix
1 parent ba2945a commit c504a6f

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

.github/workflows/ci.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
name: ci
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
1010

1111
jobs:
12-
test-fixtures:
13-
runs-on: ${{ matrix.os }}
14-
timeout-minutes: 10
12+
test-fixtures:
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest]
16+
node-version: [20]
1517

16-
strategy:
17-
matrix:
18-
os: [ubuntu-latest, windows-latest]
19-
node: [18]
18+
runs-on: ${{ matrix.os }}
19+
timeout-minutes: 10
2020

21-
steps:
22-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
23-
- run: corepack enable
24-
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
25-
with:
26-
node-version: 20
27-
cache: "pnpm"
28-
29-
- name: Install dependencies
30-
run: pnpm install
21+
steps:
22+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
23+
- run: corepack enable
24+
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: "pnpm"
28+
29+
- name: Install dependencies
30+
run: pnpm install
3131

32-
- name: Install Playwright
33-
run: pnpm playwright-core install chromium
32+
- name: Install Playwright
33+
run: pnpm playwright-core install chromium
3434

35-
- name: Build (stub)
36-
run: pnpm dev:prepare
37-
38-
- name: Test (fixtures)
39-
run: pnpm test
35+
- name: Build (stub)
36+
run: pnpm dev:prepare
37+
38+
- name: Test (fixtures)
39+
run: pnpm test

0 commit comments

Comments
 (0)