diff --git a/.github/workflows/validate-proto.yml b/.github/workflows/validate-proto.yml new file mode 100644 index 000000000..36505985b --- /dev/null +++ b/.github/workflows/validate-proto.yml @@ -0,0 +1,25 @@ +name: Validate GTFS-realtime .proto file + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file + - name: Install Protoc + uses: arduino/setup-protoc@master + - name: Compile Java bindings + run: protoc --java_out=gtfs-realtime/proto gtfs-realtime/proto/gtfs-realtime.proto