Merge branch 'transitland:main' into main #30
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
name: Validate | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
- name: Install dependencies | |
run: | | |
pip install pipenv | |
cd scripts && pipenv install | |
- name: Install transitland-lib | |
run: scripts/install-transitland-lib.sh | |
- name: Validate against DMFR schema | |
run: | | |
wget https://dmfr.transit.land/json-schema/dmfr.schema-v0.5.0.json -O dmfr.schema.json | |
npx ajv-cli validate -s dmfr.schema.json -d "feeds/*.json" | |
- name: Lint against the opinionated DMFR format | |
run: | | |
transitland dmfr lint feeds/*.dmfr.json | |
- name: Validate against transitland-lib | |
run: cd scripts && python validate-feeds.py |