diff --git a/.github/workflows/validate-taxonomies.yml b/.github/workflows/validate-taxonomies.yml new file mode 100644 index 0000000..54a0055 --- /dev/null +++ b/.github/workflows/validate-taxonomies.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: + - feature/ci-linter + +jobs: + validate-taxonomies: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Validate JSON-LD taxonomies + run: | + exit_code=0 + validator=.github/workflows/scripts/validate_taxonomy.py + for json in $(find . -name '*.json'); do + if ! python "$validator" "$json"; then + exit_code=1 + fi + done + exit $exit_code +