File tree 3 files changed +759
-1
lines changed
3 files changed +759
-1
lines changed Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
10
- - name : Install dependencies
10
+ - name : Install python dependencies
11
11
run : |
12
12
python3 -m pip install pyshacl==0.25.0 check-jsonschema==0.28.1
13
+ - name : Install dependencies
14
+ run : |
15
+ sudo apt install -y gawk
13
16
- name : Check files
14
17
run : |
15
18
set -e
27
30
$f
28
31
done
29
32
33
+ - name : Check documentation examples
34
+ run : |
35
+ for f in $(grep -l '```json' docs/annexes/*.md); do
36
+ echo "Checking $f"
37
+ cat $f | awk '/^```json/, $0=="```" {if ($0 !~ /^```.*/ ) print}' > temp.json
38
+ check-jsonschema \
39
+ -v \
40
+ --schemafile https://spdx.org/schema/3.0.0/spdx-json-schema.json \
41
+ temp.json
42
+
43
+ pyshacl \
44
+ -s https://spdx.org/rdf/3.0.0/spdx-model.ttl \
45
+ -e https://spdx.org/rdf/3.0.0/spdx-model.ttl \
46
+ temp.json
47
+ done
You can’t perform that action at this time.
0 commit comments