Latest data Fri Nov 1 14:37:50 UTC 2024 (#110) #111
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 GTFS | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
MD_VALIDATOR_VERSION: 5.0.1 | |
GTFS_PATH: stq-qc-ca.gtfs.zip | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" # See 'Supported distributions' for available options | |
java-version: "17" | |
- name: Get validator | |
run: | | |
curl -sSL https://github.com/MobilityData/gtfs-validator/releases/download/v$MD_VALIDATOR_VERSION/gtfs-validator-$MD_VALIDATOR_VERSION-cli.jar -o gtfs-validator.jar | |
- name: Run validator | |
run: | | |
java -jar gtfs-validator.jar -i $GTFS_PATH -o validation-results | |
- name: Check validation results | |
run: | | |
node tests/check-validation-results.js validation-results/report.json |