ci: add eslint, vitest coverage, improved CI and deploy workflows
Some checks failed
CI / lint-test (push) Failing after 26s
CI / lint-test (pull_request) Failing after 33s

This commit is contained in:
Cosmo
2026-03-26 18:35:00 +00:00
parent cf5232045a
commit 8313920c44
6 changed files with 3453 additions and 206 deletions

View File

@@ -2,10 +2,12 @@ name: CI
on:
push:
branches: [dev]
branches-ignore: [main]
pull_request:
branches: [main]
jobs:
ci:
lint-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -18,10 +20,12 @@ jobs:
run: npm ci
- name: Lint
run: npx eslint src/ --ext .js,.jsx,.ts,.tsx --max-warnings 0 || true
run: npx eslint src/ --max-warnings 0
- name: Test
run: npx vitest run --reporter=verbose
run: npx vitest run --coverage --reporter=verbose
- name: Build
run: npm run build
- name: Coverage Check
run: |
npx vitest run --coverage 2>&1 | tee coverage-output.txt
echo "Coverage report generated"