forked from justtrackio/gosoline
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mocks: regenerate mocks again with added configuration for expected c…
…alls and added CI job to ensure we don't miss mocks in the future;
- Loading branch information
Showing
132 changed files
with
37,012 additions
and
64 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 |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
- name: Set up Go 1.18 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
go-version: "1.18" | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
@@ -37,14 +37,45 @@ jobs: | |
- name: Execute test -z $(gofmt -l .) | ||
run: test -z $(gofmt -l .) | ||
|
||
mockery: | ||
name: mockery | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Set up Go 1.20 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.20" | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install mockery | ||
run: go install github.com/vektra/mockery/[email protected] | ||
|
||
- name: Execute mockery | ||
run: go generate -run='mockery' ./... | ||
|
||
- name: Check for empty diff | ||
run: | | ||
git add -A * | ||
changes=$(git status -s | grep -E '^[ ]?M|A') || true | ||
if [ "0" != $(echo -n $changes | wc -c) ]; then | ||
git status -s | grep -E '^[ ]?M|A' | ||
echo "please check the file list above and (re-)create those mocks locally with the mockery version v2.22.1!" | ||
echo "here's the diff:" | ||
git diff HEAD~0 | ||
echo "end of diff" | ||
exit 1 | ||
fi | ||
build: | ||
name: go build | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Set up Go 1.18 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
go-version: "1.18" | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
@@ -62,7 +93,7 @@ jobs: | |
- name: Set up Go 1.18 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
go-version: "1.18" | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
@@ -80,7 +111,7 @@ jobs: | |
- name: Set up Go 1.18 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
go-version: "1.18" | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
@@ -98,7 +129,7 @@ jobs: | |
- name: Set up Go 1.18 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
go-version: "1.18" | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
@@ -116,7 +147,7 @@ jobs: | |
- name: Set up Go 1.18 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
go-version: "1.18" | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
@@ -134,7 +165,7 @@ jobs: | |
- name: Set up Go 1.18 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
go-version: "1.18" | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
@@ -152,7 +183,7 @@ jobs: | |
- name: Set up Go 1.18 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
go-version: "1.18" | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
inpackage: false | ||
testonly: false | ||
with-expecter: true | ||
keeptree: true | ||
unroll-variadic: true |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.