blob: 63bb2e4519301f841e22e1e4c3f3f325ccb33f6d [file] [log] [blame]
86133aaa3f5d2025-04-20 21:33:29 +08001name: Node pnpm 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 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: curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7
23 - run: pnpm config set store-dir ~/.pnpm-store
24 - run: pnpm install --strict-peer-dependencies=false
25 - run: pnpm run lint
26 - run: pnpm run tsc
27 - run: pnpm run build
28 - run: pnpm run test
29 env:
30 CI: true
31 PROGRESS: none
32 NODE_ENV: test
33 NODE_OPTIONS: --max_old_space_size=4096