chore: add test ci
This commit is contained in:
parent
9e1b9d1328
commit
7160559c01
1 changed files with 30 additions and 0 deletions
30
.github/workflows/test.yml
vendored
Normal file
30
.github/workflows/test.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['main']
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: ['main']
|
||||
schedule:
|
||||
- cron: '36 3 * * 2'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Run test
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
security-events: write
|
||||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install deps
|
||||
run: |
|
||||
npm install vitest
|
||||
|
||||
- name: Run Vitest
|
||||
run: npx vitest run .
|
||||
continue-on-error: false
|
Loading…
Reference in a new issue