Skip to content

fix: require Node.js 20+ for cheerio/undici compatibility #10

fix: require Node.js 20+ for cheerio/undici compatibility

fix: require Node.js 20+ for cheerio/undici compatibility #10

Workflow file for this run

name: CI
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Build
run: npm run build
- name: Verify build output
run: |
test -f build/index.js || exit 1
test -f build/index.d.ts || exit 1
echo "✅ Build output verified"