Skip to content

Commit

Permalink
add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hfxbse committed Mar 25, 2024
1 parent 0783201 commit 46cd845
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: tests
run-name: Tests
on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
node-unit-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
name: "Checkout out repository"

- uses: actions/setup-node@v4
name: "Set up Node.js"
with:
node-version: 21.x
cache: npm

- run: npm install
name: "Install project dependencies"

- run: npm run test
name: "Run tests"
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"prerun": "tsc",
"run": "node ./build/index.js"
"run": "node ./build/index.js",
"test": ""
},
"type": "module",
"keywords": [],
Expand Down

0 comments on commit 46cd845

Please sign in to comment.