Skip to content

Commit

Permalink
feat(ci): add linter workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Broussard committed Jan 26, 2025
1 parent 7c08a6b commit a3f8391
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/validate-taxonomies.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a3f8391

Please sign in to comment.