From 5bb7cbbcb3cad5b4239a3512360553e2c0ff4d61 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Tue, 11 Jun 2024 16:20:10 -0400 Subject: [PATCH] [ci] Validate that generated mocks are up to date (#5568) ## Which problem is this PR solving? - We want mockery version to be up to date with the generated files. - #5563 upgrades mockery, but does not re-generate the files. ## Description of the changes - Add a lint check to the workflow for protobuf ## How was this change tested? - the step passed in the CI --------- Signed-off-by: Yuri Shkuro --- .github/workflows/ci-protogen-tests.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-protogen-tests.yml b/.github/workflows/ci-protogen-tests.yml index 4edb4847413..7360f36ddec 100644 --- a/.github/workflows/ci-protogen-tests.yml +++ b/.github/workflows/ci-protogen-tests.yml @@ -1,4 +1,4 @@ -name: Protogen Validation +name: Generated Files Validation on: push: @@ -16,7 +16,7 @@ permissions: # added using https://github.com/step-security/secure-workflows contents: read jobs: - protogen: + generated-files-check: runs-on: ubuntu-latest steps: - name: Harden Runner @@ -37,3 +37,6 @@ jobs: - name: Verify Thrift types are up to date run: make thrift && git diff --name-status --exit-code + + - name: Verify Mockery types are up to date + run: make generate-mocks && git diff --name-status --exit-code