From d1308e092a12548a069100073ae2511951c8764f Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Tue, 8 Feb 2022 15:27:30 -0500 Subject: [PATCH] fix(ci): mocks checking fixes (#2274) - Use `integration` build tag to take integration test files into account - Verify mocks part of the gossamer/devnet module --- .github/workflows/mocks.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/mocks.yml b/.github/workflows/mocks.yml index 7d5d3e8608..30f0f28000 100644 --- a/.github/workflows/mocks.yml +++ b/.github/workflows/mocks.yml @@ -21,9 +21,16 @@ jobs: - run: go install github.com/golang/mock/mockgen@v1.6.0 - - run: go generate -run "mockery" ./... + - name: Check devnet module + run: | + cd devnet && \ + go generate -run "mockery" -tags integration ./... && \ + go generate -run "mockgen" -tags integration ./... && \ + git diff --exit-code && \ + cd .. - - run: go generate -run "mockgen" ./... - - - name: mocks updated check - run: git diff --exit-code + - name: Check Gossamer module + run: | + go generate -run "mockery" -tags integration ./... && \ + go generate -run "mockgen" -tags integration ./... && \ + git diff --exit-code