Skip to content

Commit

Permalink
GitHub Action to run tests on current versions of Node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Jan 13, 2025
1 parent ef5a989 commit 45275bc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: ci
on:
push:
# branches: [main]
pull_request:
branches: [main]
jobs:
ci:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x, 22.x, 23.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present
- run: npm test
- run: node node_modules/tap/bin/tap.js --gc test/js/*-test.js

0 comments on commit 45275bc

Please sign in to comment.