Skip to content

Add GitHub Action for validation #1

Add GitHub Action for validation

Add GitHub Action for validation #1

Workflow file for this run

name: Schema CI
on:
push:
paths:
- 'benchmarks.yaml'
- 'schema.json'
- '.github/workflows/validate.yml'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install pajv
- run: pajv validate -s schema.json -d benchmarks.yaml