Proper tree-sitter 0.25 support #60
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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| workflow_call: | |
| concurrency: | |
| group: ${{github.workflow}}-${{github.ref}} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: | |
| - windows-2022 | |
| - windows-11-arm | |
| - macos-15 | |
| - macos-13 | |
| - ubuntu-22.04 | |
| - ubuntu-22.04-arm | |
| node: | |
| - 20.19.5 | |
| - 22.19.0 | |
| - 24.7.0 | |
| fail-fast: false | |
| name: Test Node ${{matrix.node}} on ${{matrix.os}} | |
| runs-on: ${{matrix.os}} | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| - name: Setup Node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: ${{matrix.node}} | |
| - name: Install dependencies | |
| run: npm ci --legacy-peer-deps | |
| - name: Set npm_config_target | |
| run: printf 'npm_config_target=${{matrix.node}}\n' >> "$GITHUB_ENV" | |
| - name: Build binary | |
| run: npm x -- prebuildify --napi | |
| - name: Run tests | |
| run: npm test | |
| - name: Upload prebuilds | |
| uses: actions/upload-artifact@v4 | |
| if: github.ref_type == 'tag' && startsWith(matrix.node, '20') | |
| with: | |
| path: prebuilds/** | |
| name: prebuilds-${{runner.os}}-${{runner.arch}} | |
| retention-days: 2 |