forked from open-component-model/open-component-model
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.09 KB
/
Copy pathjsonschema.yml
File metadata and controls
39 lines (37 loc) · 1.09 KB
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: JSON Schema
on:
push:
branches:
- main
paths:
- '**/schemas/*.schema.json'
- '.github/workflows/jsonschema.yml'
pull_request:
branches:
- main
paths:
- '**/schemas/*.schema.json'
- '.github/workflows/jsonschema.yml'
permissions:
contents: read
jobs:
lint:
name: Lint
# sourcemeta/jsonschema install script uses uname -m (returns aarch64 on Linux ARM64)
# but release assets are named arm64, causing a download 404.
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
- name: Setup JSON Schema
uses: sourcemeta/jsonschema@43071f4c027ff06d05275fb5d7d59193a93f4823 # v15.8.0
- name: Lint JSON Schemas
run: |
jsonschema lint $(git ls-files '**/schemas/*.schema.json' | grep -v 'testutils') \
--verbose \
--exclude orphan_definitions \
--exclude enum_with_type \
--exclude description_trailing_period \
--exclude top_level_examples