Files
js-md5/.github/workflows/ci.yml
T
Yi-Cyuan ChenandClaude Opus 5.5 2bf0dfe852 ### Changed
- Update transitive dev dependencies to fix security advisories (brace-expansion, browserslist, diff, glob, js-yaml, markdown-it, minimatch, serialize-javascript)
- Drop Node.js 16 from CI

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:48:47 +08:00

49 lines
1.0 KiB
YAML

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x, 24.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Build
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 == '24.x'
run: npm run coverage
- name: Upload to coveralls
if: matrix.node-version == '24.x'
uses: coverallsapp/github-action@v2
with:
file: ./coverage.lcov