-
Notifications
You must be signed in to change notification settings - Fork 15
52 lines (40 loc) · 948 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
50
51
52
name: CI
on:
push:
branches:
- main
env:
TZ: "America/New_York"
jobs:
ci:
name: CI
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [14.21.3, 16.20.0, 18.19.0, 20.10.0]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup PNPM
uses: pnpm/[email protected]
with:
version: 8.6.3
- name: Setup Node
uses: actions/setup-node@v3
with:
# NOTE: keep synced with .npmrc
node-version: 18.19.0
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Lint
# Only for the first Node version
if: matrix.node == '14.21.3'
run: pnpm run lint
- name: Build
run: pnpm run build
- name: Test
run: pnpm run test --node-version=${{ matrix.node }}