86133 | aaa3f5d | 2025-04-20 21:33:29 +0800 | [diff] [blame] | 1 | name: Node pnpm CI |
| 2 | |
| 3 | on: [push, pull_request] |
| 4 | |
| 5 | permissions: |
| 6 | contents: read |
| 7 | |
| 8 | jobs: |
| 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 |