Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 "[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