template / ci-testing / files / Makefile
Branch ci-testing · default branch · all branches
Makefile
763c260d 2022-10-06 Pavel Safronov | 1 | .PHONY: test |
| 2 | ||
b3de39c0 2022-11-16 Pavel Safronov | 3 | all: build test lint install |
ae89a42a 2022-11-02 Pavel Safronov | 4 | |
5c81baec 2022-11-20 Pavel Safronov | 5 | prep: |
| 6 | go mod tidy | |
| 7 | ||
75a066b2 2022-11-16 Pavel Safronov | 8 | clean: |
| 9 | go clean | |
| 10 | ||
5c81baec 2022-11-20 Pavel Safronov | 11 | build: prep |
763c260d 2022-10-06 Pavel Safronov | 12 | go build . |
| 13 | ||
75a066b2 2022-11-16 Pavel Safronov | 14 | lint: build |
d98300ca 2022-11-20 Pavel Safronov | 15 | go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest |
| 16 | golangci-lint --version | |
14a9913e 2022-11-16 Pavel Safronov | 17 | golangci-lint run |
75a066b2 2022-11-16 Pavel Safronov | 18 | |
| 19 | test: build | |
9b0177be 2022-11-19 Pavel Safronov | 20 | go test -v ./... -coverprofile="./test-coverage.out" |
75a066b2 2022-11-16 Pavel Safronov | 21 | |
| 22 | test_coverage: test | |
9b0177be 2022-11-19 Pavel Safronov | 23 | go tool cover -html="./test-coverage.out" -o "./test-coverage.html" |
75a066b2 2022-11-16 Pavel Safronov | 24 | |
| 25 | test_coverage_html: test_coverage | |
9b0177be 2022-11-19 Pavel Safronov | 26 | open "./test-coverage.html" |
75a066b2 2022-11-16 Pavel Safronov | 27 | |
| 28 | install: build test lint | |
52e9ad7c 2022-11-08 Pavel Safronov | 29 | go install |
| 30 | template reset | |
763c260d 2022-10-06 Pavel Safronov | 31 | |
95a5c62c 2022-10-26 Pavel Safronov | 32 | uninstall: |
b67e39c6 2022-10-26 Pavel Safronov | 33 | go clean -i gitlab.com/fuzzy-rp/template... |
95a5c62c 2022-10-26 Pavel Safronov | 34 | |
b3de39c0 2022-11-16 Pavel Safronov | 35 | release-dry-run: build test lint |
| 36 | go install github.com/goreleaser/goreleaser@latest | |
| 37 | goreleaser release --snapshot --rm-dist | |
| 38 | ||
| 39 | release-local: build test lint | |
| 40 | go install github.com/goreleaser/goreleaser@latest | |
| 41 | goreleaser build --single-target |