Skip to content

Commit

Permalink
ci: run tests for node 20/22 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
sparten11740 authored Jul 17, 2024
1 parent 93b612a commit ec45cfd
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,24 @@ concurrency:
jobs:
check:
runs-on: ubuntu-latest
name: ${{ matrix.name }}
name: '${{ matrix.command }} on node ${{ matrix.node-version }}'
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- name: Lint
cmd: pnpm lint
- name: Test
cmd: pnpm test
- name: Test (just tape, no --jest)
cmd: pnpm run test:tape
node-version: ['22.4', '20.11']
command: ['lint', 'test', 'test:tape']
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- uses: pnpm/action-setup@18ac635edf3d6cd3e88d281bceecc25c4dbc1e73
with:
run_install: false
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
with:
node-version-file: .nvmrc
node-version: ${{ matrix.node-version }}
cache: pnpm
registry-url: 'https://registry.npmjs.org'
- run: pnpm i --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: ${{ matrix.cmd }}
- run: pnpm ${{ matrix.command }}

0 comments on commit ec45cfd

Please sign in to comment.