Skip to content

Commit

Permalink
fix(test): add test workflow (#20)
Browse files Browse the repository at this point in the history
* add test workflow
* use lts versiones
* only main branch
  • Loading branch information
bjohansebas authored Nov 20, 2024
1 parent 79dcc7a commit 22418fc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

concurrency:
group: "test"
cancel-in-progress: false

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 19, 20, 21, 22, 23]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: npm install and test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm it
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,8 @@
"npm": "^6.10.3",
"regenerator-runtime": "^0.13.3",
"yargs": "^13.3.0"
},
"engines": {
"node": ">=18"
}
}

0 comments on commit 22418fc

Please sign in to comment.