Skip to content

Commit

Permalink
Add github actions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
clettenberg committed Mar 9, 2024
1 parent 6ab8c8f commit a4b6d2f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run Tests

on:
push:
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 16

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test:run
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": "server.js",
"scripts": {
"start": "node_modules/.bin/nodemon server.js",
"test": "vitest"
"test": "vitest watch",
"test:run": "vitest run"
},
"author": "",
"license": "ISC",
Expand Down

0 comments on commit a4b6d2f

Please sign in to comment.