Skip to content

Commit

Permalink
Added mockery step in CI pipeline to automatically generate mocked in…
Browse files Browse the repository at this point in the history
…terfaces for the Go target (#233)

* Added mockery step in CI pipeline to automatically generate mocked interfaces for the Go target

---------

Co-authored-by: Jesse Geens <jgeens@cern.ch>
  • Loading branch information
jessegeens and Jesse Geens authored Sep 27, 2024
1 parent 7e69288 commit 168ffc5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,19 @@ jobs:
touch /root/.ssh/known_hosts
chmod 400 /root/.ssh/known_hosts
ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts 2> /dev/null
- name: build-and-publish
run: cs3apis-build -git-ssh -push-go -push-js -push-node -push-python
- name: run-mockery
run: |
cd build/go-cs3apis
git config user.email "cs3org-bot@hugo.labkode.com"
git config user.name "cs3org-bot"
go install github.com/vektra/mockery/v2@v2.40.0 # Later versions are incompatible with Go 1.21
mockery
git add .
git commit -m 'Generated mock interfaces for https://github.com/cern-eos/grpc-proto/tree/${{ github.sha }}'
git push origin main
- name: setup-buf
uses: bufbuild/buf-setup-action@v1
- name: push-buf
Expand Down

0 comments on commit 168ffc5

Please sign in to comment.