-
-
Notifications
You must be signed in to change notification settings - Fork 759
79 lines (79 loc) · 2.49 KB
/
ci.yml
File metadata and controls
79 lines (79 loc) · 2.49 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["18", "20", "22.4.1", "23"]
name: Node ${{ matrix.node }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Set up pnpm
run: npm i -g pnpm@10
- name: Install
run: pnpm install
- name: Build
run: pnpm run build
- name: Test
run: |
if node -e "process.exit(Number(+process.versions.node.slice(0, 2) < 23))"; then
export NODE_OPTIONS="--no-experimental-strip-types"
fi
pnpm run test:full
- name: Lint
run: pnpm run lint
- name: Circular dependency check
uses: gerrit0/circular-dependency-check@v2.0.2
with:
entry: |
dist/index.js
dist/lib/models/index.js
dist/browser-utils.js
build-release:
runs-on: ubuntu-latest
name: Node 22 Release
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22.4.1
- name: Set up pnpm
run: npm i -g pnpm@10
- name: Install
run: pnpm install
- name: Build
run: |
node scripts/set_strict.js false
pnpm run build
- name: Test
run: pnpm run test:full
- name: Lint
run: pnpm run lint
build-windows:
runs-on: windows-latest
name: Node 18 Windows
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Set up pnpm
run: npm i -g pnpm@10
- name: Install
run: pnpm install
- name: Build
run: pnpm run build
- name: Test
run: pnpm run test:full
- name: Lint
run: pnpm run lint