Skip to content

Add spdx3-validate to examples validation workflow #657

Add spdx3-validate to examples validation workflow

Add spdx3-validate to examples validation workflow #657

on:
pull_request:
paths:
- 'examples/**/*.json'
- 'docs/annexes/*.md'
push:
paths:
- 'examples/**/*.json'
- 'docs/annexes/*.md'
jobs:
validate-examples:
runs-on: ubuntu-latest
steps:
- name: Checkout spdx-spec
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
- name: Set up specific Python version
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b #v5.3.0
with:
python-version: "3.12"
cache: "pip"
- name: Install Python dependencies
run: |
python3 -m pip install check-jsonschema==0.30.0 pyshacl==0.29.0 spdx3-validate==0.0.5
- name: Install dependencies
run: |
sudo apt install -y gawk
- name: Check examples
run: |
./bin/check-examples.sh