chore: add test action
This commit is contained in:
parent
a254cdc669
commit
f3e4d28719
1 changed files with 6 additions and 8 deletions
|
@ -10,8 +10,8 @@ on:
|
||||||
- cron: '36 3 * * 2'
|
- cron: '36 3 * * 2'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
eslint:
|
test:
|
||||||
name: Run eslint scanning
|
name: Run test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
@ -21,14 +21,12 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install ESLint
|
- name: Install deps
|
||||||
run: |
|
run: |
|
||||||
npm install eslint@8.56.0
|
npm install
|
||||||
npm install @microsoft/eslint-formatter-sarif@2.1.7
|
|
||||||
|
|
||||||
- name: Run ESLint
|
- name: Run Vitest
|
||||||
run: npx eslint .
|
run: npx vitest .
|
||||||
--c eslint.config.mjs
|
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
|
|
||||||
- name: Upload analysis results to GitHub
|
- name: Upload analysis results to GitHub
|
Loading…
Reference in a new issue