forked from testcontainers/testcontainers-go
-
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.
Merge branch 'main' into windows-fixes
* main: ci: add generate for mocks (testcontainers#2774) fix: docker config error handling when config file does not exist (testcontainers#2772) docs: refine heading badges in README (testcontainers#2770) feat(wait): for file (testcontainers#2731) feat(compose): select services via profiles (testcontainers#2758) chore(deps): bump mkdocs-markdownextradata-plugin from 0.2.5 to 0.2.6 (testcontainers#2761) fix: update template too (testcontainers#2763) chore(deps): bump actions/checkout from 4.1.1 to 4.1.7 (testcontainers#2762) chore(deps): bump mkdocs-include-markdown-plugin from 6.0.4 to 6.2.2 (testcontainers#2760) fix: check if the discovered docker socket responds (testcontainers#2741) Upgrade milvus-io/milvus-sdk-go to avoid checksum mismatch. (testcontainers#2753) Fix trailing slash on Image Prefix (testcontainers#2747) chore: use new testcontainers/ryuk:0.9.0 image (testcontainers#2750)
- Loading branch information
Showing
99 changed files
with
1,576 additions
and
356 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
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
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
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
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
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
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,11 @@ | ||
quiet: True | ||
disable-version-string: True | ||
with-expecter: True | ||
mockname: "mock{{.InterfaceName}}" | ||
filename: "{{ .InterfaceName | lower }}_mock_test.go" | ||
outpkg: "{{.PackageName}}_test" | ||
dir: "{{.InterfaceDir}}" | ||
packages: | ||
github.com/testcontainers/testcontainers-go/wait: | ||
interfaces: | ||
StrategyTarget: |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -11,13 +11,17 @@ $(GOBIN)/golangci-lint: | |
$(GOBIN)/gotestsum: | ||
$(call go_install,gotest.tools/gotestsum@latest) | ||
|
||
$(GOBIN)/mockery: | ||
$(call go_install,github.com/vektra/mockery/[email protected]) | ||
|
||
.PHONY: install | ||
install: $(GOBIN)/golangci-lint $(GOBIN)/gotestsum | ||
install: $(GOBIN)/golangci-lint $(GOBIN)/gotestsum $(GOBIN)/mockery | ||
|
||
.PHONY: clean | ||
clean: | ||
rm $(GOBIN)/golangci-lint | ||
rm $(GOBIN)/gotestsum | ||
rm $(GOBIN)/mockery | ||
|
||
.PHONY: dependencies-scan | ||
dependencies-scan: | ||
|
@@ -26,7 +30,11 @@ dependencies-scan: | |
|
||
.PHONY: lint | ||
lint: $(GOBIN)/golangci-lint | ||
golangci-lint run --out-format=github-actions --path-prefix=. --verbose -c $(ROOT_DIR)/.golangci.yml --fix | ||
golangci-lint run --out-format=colored-line-number --path-prefix=. --verbose -c $(ROOT_DIR)/.golangci.yml --fix | ||
|
||
.PHONY: generate | ||
generate: $(GOBIN)/mockery | ||
go generate ./... | ||
|
||
.PHONY: test-% | ||
test-%: $(GOBIN)/gotestsum | ||
|
@@ -51,3 +59,6 @@ test-tools: $(GOBIN)/gotestsum | |
.PHONY: tidy | ||
tidy: | ||
go mod tidy | ||
|
||
.PHONY: pre-commit | ||
pre-commit: generate tidy lint |
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
Oops, something went wrong.