Skip to content

fix(deps): pin cheerio #3039

fix(deps): pin cheerio

fix(deps): pin cheerio #3039

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Test on node ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
node: [20, 22]
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
registry-url: https://registry.npmjs.org
- name: Cache npm
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Cache jest
uses: actions/cache@v1
with:
path: .jest-cache
key: ${{ runner.os }}-${{ matrix.node-version }}-jest
- name: install
run: npm ci
- name: lint
run: npm run lint
- name: build
run: npm run build
- name: install chromium
run: npm run chromium
- name: install package revision
run: npm i . -g
- name: test
run: npm test
env:
FORCE_EXIT: true
- name: upload visual diff
uses: actions/upload-artifact@v3
if: failure()
with:
name: visual-test-diff-${{ runner.os }}-${{ matrix.node }}
path: temp/diff/*
commit-lint:
runs-on: ubuntu-latest
steps:
- uses: ahmadnassri/action-commit-lint@v1
auto-merge:
if: ${{ false }}
needs: test
runs-on: ubuntu-latest
steps:
- uses: fastify/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
merge-method: rebase