Skip to content

Add .spawnOptions() method #3

Add .spawnOptions() method

Add .spawnOptions() method #3

Workflow file for this run

name: Run tests
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
node-version: ['12.x', '14.x', '16.x', '18.x', '20.x']
platform: ['ubuntu', 'windows']
name: node ${{ matrix.node-version }} on ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- npm install -g npm@latest

Check failure on line 22 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Run tests

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 22, Col: 9): Unexpected value 'npm install -g npm@latest'
- run: npm ci
- name: Install webp (windows)
if: matrix.platform == 'windows'
shell: pwsh
run: .\bin\download_webp.ps1
- name: Install webp
if: matrix.platform != 'windows'
run: sudo ./bin/install_webp
- run: npm test