File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Runs the same checks as `make all` (gotools image + test + lint).
2+ name : CI
3+
4+ on :
5+ push :
6+ paths-ignore :
7+ - " doc/**"
8+ pull_request :
9+ paths-ignore :
10+ - " doc/**"
11+
12+ jobs :
13+ all :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+
18+ - name : make all (gotools image + test + lint)
19+ env :
20+ CI : true
21+ run : make all
Original file line number Diff line number Diff line change @@ -3,7 +3,12 @@ MAXIMUM_COMPLEXITY=15
33
44GO_VER? =latest
55DOCKER: =$(shell if which podman >/dev/null; then echo podman; else echo docker; fi)
6- RUN: =$(DOCKER ) run -it --rm -w $(CURDIR ) -v $(CURDIR ) :$(CURDIR ) :Z gotools:$(GO_VER )
6+
7+ ifeq ($(CI ) ,true)
8+ RUN: =$(DOCKER ) run --rm -w $(CURDIR ) -v $(CURDIR ) :$(CURDIR ) gotools:$(GO_VER )
9+ else
10+ RUN: =$(DOCKER ) run --rm -w $(CURDIR ) -v $(CURDIR ) :$(CURDIR ) :Z gotools:$(GO_VER )
11+ endif
712COV =/tmp/test.out
813
914.PHONY : all
You can’t perform that action at this time.
0 commit comments