Test #666
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: Test | |
| on: | |
| push: | |
| pull_request: | |
| schedule: | |
| - cron: "43 19 * * *" | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: | |
| - 20.x # Maintenance LTS as of 2025-07 | |
| - 22.x # Active LTS as of 2025-07 | |
| - 24.x # Current as of 2025-07 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: npm update | |
| - run: npm run build | |
| - run: npm run lint | |
| - run: npm run test | |
| - run: npm run examples:node | |
| esbuild: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.x | |
| - run: npm update | |
| - run: npm run build | |
| - run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns | |
| - run: npm run examples:esbuild | |
| bun: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.x | |
| - uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - run: npm update | |
| - run: npm run build | |
| - run: npm run examples:bun | |
| # https://github.com/oven-sh/bun/issues/4145 | |
| # - run: bun run --bun test:short | |
| deno: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.x | |
| - uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: vx.x.x | |
| - run: npm update | |
| - run: npm run build | |
| - run: npm run examples:deno | |
| yarn: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.x | |
| - run: npm update | |
| - run: npm run build | |
| - run: npm run examples:yarn | |
| pnpm: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.x | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: latest | |
| - run: npm update | |
| - run: npm run build | |
| - run: npm run examples:pnpm |