mirror of
https://github.com/Ravinou/borgwarehouse
synced 2026-03-14 14:25:46 +01:00
config: 🔧 add ESlint to github action CI
This commit is contained in:
parent
6f24a63077
commit
144bea3947
1 changed files with 21 additions and 2 deletions
23
.github/workflows/vitest.yml
vendored
23
.github/workflows/vitest.yml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: Vitest
|
||||
name: Vitest & ESLint CI
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
@ -11,7 +11,7 @@ on:
|
|||
- develop
|
||||
jobs:
|
||||
test:
|
||||
name: Run Vitest Tests
|
||||
name: Run Vitest
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
|
@ -28,3 +28,22 @@ jobs:
|
|||
|
||||
- name: Run Vitest
|
||||
run: npm run test
|
||||
|
||||
lint:
|
||||
name: Run ESLint
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run ESLint
|
||||
run: npm run lint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue