Merge pull request #1038 from haadcode/ci-action-run-test

Add a Github Action config for running tests on all branches on push
This commit is contained in:
Haad 2022-12-30 12:59:37 +02:00 committed by GitHub
commit 808af25d52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

18
.github/workflows/run-test.yml vendored Normal file
View File

@ -0,0 +1,18 @@
---
name: Run Tests
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test