Merge pull request #1100 from zcash/1098-ci-lint-protobuf

CI: Add lint to check protobuf consistency with generated files
This commit is contained in:
Kris Nuttycombe 2024-01-05 16:32:15 -07:00 committed by GitHub
commit 2d5bf5d8d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

View File

@ -143,6 +143,23 @@ jobs:
- name: Check formatting
run: cargo fmt --all -- --check
protobuf:
name: protobuf consistency
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install protoc
uses: supplypike/setup-bin@v3
with:
uri: 'https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protoc-25.1-linux-x86_64.zip'
name: 'protoc'
version: '25.1'
subPath: 'bin'
- name: Trigger protobuf regeneration
run: cargo check --workspace --all-features
- name: Verify working directory is clean
run: git diff --exit-code
uuid:
name: UUID validity
runs-on: ubuntu-latest