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
  • Loading branch information
Jesse Geens committed Sep 26, 2024
1 parent 7e69288 commit f8a372b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,20 @@ 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: |
git clone git+ssh://[email protected]/cs3org/go-cs3apis
cd go-cs3apis
git config user.email "[email protected]"
git config user.name "cs3org-bot"
go install github.com/vektra/mockery/[email protected] # 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 f8a372b

Please sign in to comment.