-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #892 from miguelsorianod/install-ginkgocli-atproje…
…ctlevel Install and use ginkgo cli at project level
- Loading branch information
Showing
2 changed files
with
8 additions
and
6 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 |
---|---|---|
|
@@ -51,10 +51,6 @@ jobs: | |
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
- name: Setup Go tools | ||
run: | | ||
go install github.com/onsi/ginkgo/v2/[email protected] | ||
- name: Run the tests | ||
run: make tests ginkgo_flags="--skip-package leadership,retry" | ||
|
||
|
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 |
---|---|---|
|
@@ -40,6 +40,12 @@ goimports_version:=v0.4.0 | |
# machine: the leadership flag and retry tests. | ||
ginkgo_flags:= | ||
|
||
.DEFAULT_GOAL := examples | ||
|
||
GINKGO := $(LOCAL_BIN_PATH)/ginkgo | ||
ginkgo-install: | ||
@GOBIN=$(LOCAL_BIN_PATH) go install github.com/onsi/ginkgo/v2/[email protected] ;\ | ||
|
||
.PHONY: examples | ||
examples: | ||
cd examples && \ | ||
|
@@ -48,8 +54,8 @@ examples: | |
done | ||
|
||
.PHONY: test tests | ||
test tests: | ||
ginkgo run -r $(ginkgo_flags) | ||
test tests: ginkgo-install | ||
$(GINKGO) run -r $(ginkgo_flags) | ||
|
||
.PHONY: fmt | ||
fmt: | ||
|