JSON-LD Serialization doc: Add info on validation and Examples, sort use cases/examples list #281
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-License-Identifier: Apache-2.0 | |
# SPDX-FileCopyrightText: Copyright 2024 The SPDX Contributors | |
name: validate PR | |
on: | |
pull_request | |
jobs: | |
doit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | |
with: | |
python-version: "3.12" | |
- name: get spec-parser | |
run: | | |
git clone --depth=1 --single-branch --branch=main https://github.com/spdx/spec-parser/ ${{ runner.temp }}/spec-parser | |
python ${{ runner.temp }}/spec-parser/main.py -h | |
- name: run spec-parser to validate | |
run: | | |
python ${{ runner.temp }}/spec-parser/main.py -n model |