-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added mockery step in CI pipeline to automatically generate mocked in…
…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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|