diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..8ad4b0a --- /dev/null +++ b/.github/workflows/test.yml @@ -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" diff --git a/package.json b/package.json index 159a9e2..f7f73b7 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "index.js", "scripts": { "prerun": "tsc", - "run": "node ./build/index.js" + "run": "node ./build/index.js", + "test": "" }, "type": "module", "keywords": [],