Skip to content

fix CI config

fix CI config #57

Workflow file for this run

#
# ci.yml
#
# Run tests for all pushed commits and opened pull requests on Github.
#
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: [ubuntu-latest, windows-latest, macOS-latest]
timeout-minutes: 10
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
steps:
- name: Clean global cache

Check failure on line 17 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
run: npm cache clean --force
- name: Set up Node
uses: actions/checkout@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm install
- name: CI build & test
run: |
npm run build --if-present
npm test
env:
CI: true