86133 | aaa3f5d | 2025-04-20 21:33:29 +0800 | [diff] [blame^] | 1 | name: Node 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.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 |