Skip to content

Commit

Permalink
Add test workflow (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored May 31, 2023
1 parent d0aa1d9 commit f3c8b3c
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test
on:
push:
branches: [$default-branch]
paths:
- src/**
- test/**
- "*.js"
- "*.ts"
- "*.json"
- .github/workflows/test.yml
pull_request:
branches: [$default-branch]
paths:
- src/**
- test/**
- "*.js"
- "*.ts"
- "*.json"
- .github/workflows/test.yml
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
node-version: ["16", "18", "20"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm test

0 comments on commit f3c8b3c

Please sign in to comment.