-
Notifications
You must be signed in to change notification settings - Fork 64
53 lines (45 loc) · 1.25 KB
/
validate_json.yml
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
44
45
46
47
48
49
50
51
52
53
on:
pull_request:
branches:
- main
push:
branches:
- main
name: Validate bangs.json
jobs:
validate-bangs-json:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Validate JSON
uses: walbo/[email protected]
with:
files: data/*bangs.json
# optional, defaults to `$schema` in your JSON file
schema: ./data/bangs.schema.json
# optional, default: draft-04
schema-version: draft-07
# optional, default: false
print-valid-files: true
# optional, default: false
fail-on-missing-schema: true
# optional, default: true
strict: true
# optional, default: false
allow-matching-properties: false
# optional, default: true
allow-union-types: true
run-rspec-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
# Not needed with a .ruby-version file
ruby-version: 3.0
# runs 'bundle install' and caches installed gems automatically
bundler-cache: true
- name: Run tests
run: |
bundle exec rspec