chore: remove legacy Node.js versions #91
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
| # https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
| # https://github.com/actions/setup-node | |
| # https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories | |
| name: ci | |
| on: | |
| push: | |
| # branches: [main] | |
| pull_request: | |
| # branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pre-commit/action@v3.0.1 | |
| ci: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [26.x, 25.x, 24.x, 22.x, 20.x, 18.x] | |
| os: [windows-latest, macos-latest, ubuntu-latest] | |
| include: | |
| - node-version: lts/* | |
| os: macos-15-intel # macOS on Intel | |
| - node-version: lts/* | |
| os: ubuntu-24.04-arm # Linux on arm64 | |
| - node-version: lts/* | |
| os: windows-2025 | |
| - node-version: lts/* | |
| os: windows-11-arm # Windows on arm64 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: npm install | |
| - run: | | |
| npm run-script rebuild-tests | |
| npm test | |
| - run: make test |