From 3789e467006a6c1815119ba7f2bd0ce5918ab3c7 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 5 Jan 2024 21:03:01 +0000 Subject: [PATCH] CI: Add lint to check protobuf consistency with generated files Closes zcash/librustzcash#1098. --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31cd69b75..b6b98b8aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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