Skip to content

Always run full months, use distinct service_ids and trip_ids in each month, use CRC32 hashes to make service_ids stable. #98

Always run full months, use distinct service_ids and trip_ids in each month, use CRC32 hashes to make service_ids stable.

Always run full months, use distinct service_ids and trip_ids in each month, use CRC32 hashes to make service_ids stable. #98

Workflow file for this run

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