mirror of
https://github.com/emn178/js-md5.git
synced 2026-11-16 23:08:55 +08:00
- 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>
49 lines
1.0 KiB
YAML
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
|