Set up CI with ESLint linter and Mocha test runner (#661)

This commit is contained in:
Thomas Durieux
2026-04-15 04:34:03 +02:00
committed by GitHub
parent 812f8b6314
commit f3641c8ce3
14 changed files with 1991 additions and 38 deletions
+32
View File
@@ -0,0 +1,32 @@
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run lint
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm test