add: Node.js CI workflow template

This commit is contained in:
2026-03-14 15:20:43 -05:00
parent 65965607e3
commit fe868505a3

22
workflows/node-ci.yml Normal file
View File

@@ -0,0 +1,22 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
- run: npm test --if-present
- run: npm run lint --if-present
- run: npm run build --if-present