31 lines
490 B
YAML
31 lines
490 B
YAML
|
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
|
||
|
|