-
Notifications
You must be signed in to change notification settings - Fork 50
39 lines (35 loc) · 868 Bytes
/
validate.yml
File metadata and controls
39 lines (35 loc) · 868 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
name: Validate sample queries
on:
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@v1
- name: Validate json schema
uses: docker://orrosenblatt/validate-json-action:latest
env:
INPUT_SCHEMA: /tests/samples.schema.json
INPUT_JSONS: /sample-queries/sample-queries.json
test:
runs-on: ubuntu-latest
needs: validate-json-schema
steps:
- uses: actions/checkout@v2
- name: Install
run: npm install
- name: Run test
run: npm run test