Add some simple tests
All checks were successful
Run tests / test (pull_request) Successful in 4m12s
All checks were successful
Run tests / test (pull_request) Successful in 4m12s
This commit is contained in:
31
.gitea/workflows/tests.yml
Normal file
31
.gitea/workflows/tests.yml
Normal 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
|
||||
|
Reference in New Issue
Block a user