32 lines
641 B
YAML
32 lines
641 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches-ignore: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
lint-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Lint
|
|
run: ESLINT_USE_FLAT_CONFIG=false npx eslint src/ --max-warnings 0
|
|
continue-on-error: true
|
|
|
|
- name: Test
|
|
run: npx vitest run --reporter=verbose
|
|
|
|
- name: Coverage Check
|
|
run: npx vitest run --coverage 2>&1 | tee coverage-output.txt
|
|
continue-on-error: true
|