Skip to content

Commit 7759e45

Browse files
committed
add modern check workflow
1 parent 3734d51 commit 7759e45

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/check.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: check
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build-and-test:
11+
name: Build & Test
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
# Modernized Node versions.
17+
# 12, 14, 16 are EOL. 18 is Maintenance, 20 is LTS, 22 is Current.
18+
node-version: [18, 20, 22]
19+
os: [ubuntu-latest, windows-latest, macos-latest]
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
cache: 'npm'
30+
31+
- name: Install dependencies
32+
run: npm ci
33+
34+
- name: Lint
35+
run: npm run lint
36+
37+
- name: Build
38+
run: npm run build
39+
40+
- name: Test with Coverage
41+
run: npm run test:coverage

0 commit comments

Comments
 (0)