blob: d6f5693ba459952dcee2aaf3f4f633a826ea6091 [file] [log] [blame]
86133aaa3f5d2025-04-20 21:33:29 +08001name: Node CI
2
3on: [push, pull_request]
4
5permissions:
6 contents: read
7
8jobs:
9 build:
10 runs-on: ${{ matrix.os }}
11 strategy:
12 matrix:
13 node_version: [16.x, 14.x]
14 os: [ubuntu-latest, windows-latest, macOS-latest]
15 steps:
16 - uses: actions/checkout@v1
17 - name: Use Node.js ${{ matrix.node_version }}
18 uses: actions/setup-node@v1
19 with:
20 node-version: ${{ matrix.node_version }}
21 - run: echo ${{github.ref}}
22 - run: npm install
23 - run: yarn run lint
24 - run: yarn run tsc
25 - run: yarn run build
26 env:
27 CI: true
28 PROGRESS: none
29 NODE_ENV: test
30 NODE_OPTIONS: --max_old_space_size=4096