Skip to content

Filter the paths to be included in the CI process #6

Filter the paths to be included in the CI process

Filter the paths to be included in the CI process #6

Workflow file for this run

name: Cross-Platform CI

Check failure on line 1 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:
push:
branches:
- master
paths:
- *paths
pull_request:
branches:
- master
paths:
- *paths
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 3
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [20.18.0]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Run example tests
run: |
./rv example counter test
./rv example counter invariant
./rv example cargo test
./rv example cargo invariant
./rv example reverse test
./rv example slice test
paths: &paths
- "**.ts"
- "**.js"
- "**.json"
- "example/**"
- ".github/workflows/**"