Skip to content

Commit

Permalink
fix(ci): mocks checking fixes (#2274)
Browse files Browse the repository at this point in the history
- Use `integration` build tag to take integration test files into account
- Verify mocks part of the gossamer/devnet module
  • Loading branch information
qdm12 committed Feb 8, 2022
1 parent 9775246 commit d1308e0
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/mocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d1308e0

Please sign in to comment.