Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.yml]
indent_size = 2
46 changes: 28 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,41 @@
name: Run tests
on: [push]
on: [ push ]

jobs:
build:
name: 'Node ${{ matrix.node-version }} on ${{ matrix.os }}'
runs-on: ${{ matrix.os }}
lint:
name: Lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
- run: npm ci
- run: make eslint

test:
name: 'Node ${{ matrix.node-version }} with Puppeteer ${{ matrix.puppeteer-version }} on ${{ matrix.os }}'
runs-on: ${{ matrix.os }}
needs: lint
strategy:
matrix:
node-version: [18.x, 20.x]
os: [ubuntu-latest, macos-15]

node-version: [20, 22, 24]
os: [ubuntu-latest, macos-latest]
puppeteer-version: [24]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}

- run: npm ci

- name: Linux test
- run: npm install puppeteer@${{ matrix.puppeteer-version }}
- name: Run test
# run tests on Linux only. we only install on macos to verify that dependencies are compatible.
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install ffmpeg
xvfb-run --auto-servernum ./run --ci

sudo apt-get update
sudo apt-get install ffmpeg
xvfb-run --auto-servernum ./run --ci
- run: make eslint
#- run: make prettier-lint
Loading