Skip to content

Commit d64b734

Browse files
committed
test: Add testing to CI
1 parent 24bd6c0 commit d64b734

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

.github/workflows/push.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,46 @@
11

2-
name: Push
2+
name: Test
33

4-
on: [ push ]
4+
on:
5+
push:
6+
pull_request:
7+
8+
concurrency:
9+
group: ${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
511

612
jobs:
713

814
build:
915

10-
runs-on: ubuntu-latest
16+
runs-on: ${{ matrix.operating-system }}
1117

1218
strategy:
1319
fail-fast: false
1420
matrix:
21+
operating-system:
22+
- ubuntu-latest
23+
- windows-latest
1524
node-version:
16-
- 20.x # Maintenance
17-
- 22.x # Active
18-
- 23.x # Current
25+
- 20.x
26+
- 22.x
27+
- 24.x
1928

2029
steps:
2130

2231
- name: Checkout main branch
2332
uses: actions/checkout@v4
2433

25-
- name: Enable Node.js Corepack
26-
run: corepack enable
27-
2834
- name: Use Node.js ${{ matrix.node-version }}
2935
uses: actions/setup-node@v4
3036
with:
3137
node-version: ${{ matrix.node-version }}
3238

39+
- name: Enable Node.js Corepack
40+
run: corepack enable
41+
3342
- name: Yarn install
3443
run: yarn install
44+
45+
- name: Test
46+
run: yarn test

0 commit comments

Comments
 (0)