This commit is contained in:
Yi-Cyuan Chen
2026-07-20 14:44:06 +08:00
parent f6407a6c0c
commit ee1c332b60
26 changed files with 44 additions and 33 deletions
+8 -4
View File
@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x, 24.x]
node-version: [16.x, 18.x, 20.x, 22.x, 24.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
@@ -27,18 +27,22 @@ jobs:
run: npm ci
- name: Build
if: matrix.node-version == '22.x'
if: matrix.node-version == '24.x'
run: npm run build
- name: Check generated files
if: matrix.node-version == '24.x'
run: git diff --exit-code -- build
- name: Run tests
run: npm test
- name: Generate coverage report
if: matrix.node-version == '22.x'
if: matrix.node-version == '24.x'
run: npm run coverage
- name: Upload to coveralls
if: matrix.node-version == '22.x'
if: matrix.node-version == '24.x'
uses: coverallsapp/github-action@v2
with:
file: ./coverage.lcov