feat: 新增 --tsgo 参数以支持 @typescript/native-preview 编译器 #151
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Node.js CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| timeout-minutes: 60 | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| node-version: 16 | |
| - os: ubuntu-latest | |
| node-version: 20 | |
| - os: windows-latest | |
| node-version: 20 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Git checkout | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: npm install -g typescript@3.9.10 | |
| - run: npm install && npm install codecov | |
| - run: npm run cov | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v3 |