File tree Expand file tree Collapse file tree 2 files changed +26
-5
lines changed
Expand file tree Collapse file tree 2 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Test
2+
3+ on :
4+ push :
5+ branches : [ "trunk" ]
6+ pull_request :
7+ branches : [ "trunk" ]
8+
9+ jobs :
10+
11+ build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v3
15+
16+ - name : Set up Go
17+ uses : actions/setup-go@v4
18+ with :
19+ go-version : ' 1.23'
20+
21+ - name : Test and Build
22+ run : make ci
Original file line number Diff line number Diff line change 11BINARY = go-search-replace
22BUILDDIR = ./build
33
4- all : vet fmt lint test build
4+ all : vet fmt test build
5+
6+ ci : clean vet test
57
68build : clean
79 which gox > /dev/null || go get -u github.com/mitchellh/gox
1416fmt :
1517 gofmt -s -l . | grep -v vendor | tee /dev/stderr
1618
17- lint :
18- golint ./... | grep -v vendor | tee /dev/stderr
19-
2019test :
2120 go test -v ./...
2221 go test -bench .
2322
2423clean :
2524 rm -rf ${BUILDDIR}
2625
27- .PHONY : all clean vet fmt lint test build
26+ .PHONY : all ci clean vet fmt test build
You can’t perform that action at this time.
0 commit comments