Skip to content

Commit

Permalink
Add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
acomagu committed Apr 13, 2024
1 parent d03c260 commit a0a1d84
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Test
on:
push:
workflow_dispatch:
jobs:
test:
strategy:
matrix:
node-version: ['16.x', '18.x', '20.x']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"*.ts"
],
"scripts": {
"test": "node --loader ts-node/esm --enable-source-maps --test index.ts",
"test": "node --loader ts-node/esm --enable-source-maps --test test.ts",
"build": "tsc"
},
"peerDependencies": {
Expand Down

0 comments on commit a0a1d84

Please sign in to comment.