1
mirror of https://github.com/jakejarvis/rdapper.git synced 2026-01-27 21:45:19 -05:00

chore: add GitHub Actions workflow for testing across multiple Node.js versions

This commit is contained in:
2026-01-10 13:34:27 -05:00
parent 8deef1e145
commit 0f64809bb1
2 changed files with 26 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
name: Publish to NPM
name: Publish
on:
release:
@@ -9,7 +9,7 @@ permissions:
contents: read
jobs:
publish:
npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

24
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22, 24]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run typecheck
- run: npm run lint
- run: npm run test:run