-
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (37 loc) · 945 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CI
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
ETZ: 0
jobs:
test:
name: Node.js v${{ matrix.nodejs }} (${{ matrix.os }})
timeout-minutes: 5
runs-on: ${{ matrix.os }}
strategy:
matrix:
nodejs: [18, 20]
os: [ubuntu-latest, macOS-latest]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.nodejs }}
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm -r install
- name: Build
run: pnpm build
- name: Format
run: pnpm format --check
- name: Lint
run: pnpm lint --no-fix
- name: Typecheck
run: pnpm typecheck
- name: Test
run: pnpm test -- --coverage