Add some simple tests
All checks were successful
Run tests / test (pull_request) Successful in 4m12s

This commit is contained in:
2023-12-07 22:43:55 +01:00
parent 2e96de56e6
commit 8f9a8cd655
8 changed files with 4637 additions and 24 deletions

View File

@@ -0,0 +1,31 @@
name: Run tests
on:
push:
paths:
- 'src/**.ts'
- 'src/**.tsx'
pull_request:
paths:
- 'src/**.ts'
- 'src/**.tsx'
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
env:
steps:
- uses: actions/checkout@v4
- name: Set up node
uses: https://github.com/actions/setup-node@v4
with:
node-version: 21
cache: npm
- name: deps
run: npm install
- name: Test
run: npm run test