Skip to content

feat(ci): add linter workflow #20

feat(ci): add linter workflow

feat(ci): add linter workflow #20

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