chore(node): add lint/test/check scripts and node tools CI

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
L'électron rare
2026-03-10 22:30:38 +01:00
parent 29e6afdef2
commit 08e4d17983
2 changed files with 36 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
name: Node Tools CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: wled-node-tools-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
node-tools:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Quality gate
run: npm run check
+3
View File
@@ -9,6 +9,9 @@
},
"scripts": {
"build": "node tools/cdata.js",
"lint": "node --check tools/cdata.js",
"test": "npm run build",
"check": "npm run lint && npm run test",
"dev": "nodemon -e js,html,htm,css,png,jpg,gif,ico,js -w tools/ -w wled00/data/ -x node tools/cdata.js"
},
"repository": {