1
0

add testing github action

This commit is contained in:
2024-01-20 02:35:06 +01:00
parent b118c28dc7
commit ff638ad04f
2 changed files with 24 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
name: Publish (main) name: Publish
on: on:
release: release:
types: [published] types: [ published ]
jobs: jobs:
publish: publish:

21
.github/workflows/tests.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: latest
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test