-
Notifications
You must be signed in to change notification settings - Fork 49
43 lines (36 loc) · 875 Bytes
/
validate.yml
File metadata and controls
43 lines (36 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Validate sample queries
on:
workflow_dispatch:
push:
paths:
- sample-queries/sample-queries.json
- scripts/**
- tests/**
- package.json
- package-lock.json
pull_request:
paths:
- sample-queries/sample-queries.json
- scripts/**
- tests/**
- package.json
- package-lock.json
jobs:
validate-json-schema:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Validate JSON schema
uses: dsanders11/json-schema-validate-action@v1.4.0
with:
schema: tests/samples.schema.json
files: sample-queries/sample-queries.json
test:
runs-on: ubuntu-latest
needs: validate-json-schema
steps:
- uses: actions/checkout@v5
- name: Install
run: npm install
- name: Run test
run: npm run test