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

ci: add pre gen mock code #187

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .conform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ policies:
gpg:
required: true
header:
length: 120
length: 140
header: lower
imperative: true
invalidLastCharacters: .
Expand Down
47 changes: 0 additions & 47 deletions .github/workflows/fuzz-pr.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ jobs:

- name: Go test run
run: |
go install github.com/vektra/mockery/[email protected]
go mod tidy
./scripts/generatemock.sh
# shellcheck disable=SC2046
go test -count=1 $(go list './...' | grep -v generated) -v -coverprofile=coverage.txt
go tool cover -func=coverage.txt -o=coverage.out
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ go.work
/dist
./.env
/gitprovidersync.yaml
generated
# generated
/gitprovidersync
2 changes: 0 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ env:
before:
hooks:
- go mod tidy
- go install github.com/vektra/mockery/[email protected]
- ./scripts/generatemock.sh
- ./scripts/manpage.sh
- ./scripts/completions.sh

Expand Down
85 changes: 85 additions & 0 deletions generated/mocks/mockgitlab/ClientOptionFunc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

86 changes: 86 additions & 0 deletions generated/mocks/mockgitlab/RateLimiter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

85 changes: 85 additions & 0 deletions generated/mocks/mockgitlab/RequestOptionFunc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading