CI: Add lint to check protobuf consistency with generated files

Closes zcash/librustzcash#1098.
This commit is contained in:
Jack Grigg 2024-01-05 21:03:01 +00:00
parent 0548b3dd9b
commit 3789e46700
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