Files
camofox-browser/.github/workflows/ci.yml
T
Pradeep Elankumaran f01ee38194 ci: fix reporter test (node:test vs Jest), bump CI timeout, disable bail
- Run reporter.test.js with node --test (uses node:test, not Jest)
- Exclude reporter.test from Jest run
- Bump client timeout to 60s in CI (Camoufox cold start on GitHub runners)
- Disable bail so full suite runs even on failure
2026-04-25 08:39:56 -07:00

41 lines
955 B
YAML

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 24]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies and browser
run: |
npm ci
npm install --no-save jest-junit
npx playwright install --with-deps firefox
- name: Run tests (node:test)
run: node --test tests/unit/reporter.test.js
- name: Run tests (Jest + browser)
run: |
xvfb-run --auto-servernum \
node --experimental-vm-modules node_modules/.bin/jest --runInBand --forceExit \
--testPathIgnorePatterns="live|reporter\.test"
env:
CI: true