test: don't install v16 when testing older next versions #2436
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: Deno test | |
| on: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: 'Install Node' | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: '20.x' | |
| cache: 'npm' | |
| cache-dependency-path: '**/package-lock.json' | |
| - name: Setup Deno | |
| uses: denoland/setup-deno@v1 | |
| with: | |
| deno-version: v2.2.4 | |
| - name: 'Install dependencies' | |
| run: npm ci | |
| - name: Vendor Deno modules | |
| run: deno --allow-import --vendor edge-runtime/vendor.ts | |
| - name: Test | |
| run: deno test -A edge-runtime/ |