- Add .forgejo/workflows/ci.yml with matrix (ubuntu/windows), build, test, lint jobs - Add .eslintrc.cjs with shell:true guard (no-restricted-syntax) and @typescript-eslint rules - Add lint script to package.json and ESLint v8 devDependencies - Add CI section to README.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
652 B
YAML
34 lines
652 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build-and-test:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'npm'
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npm test
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'npm'
|
|
- run: npm ci
|
|
- run: npm run lint
|