Skip to content

Commit ddcbdf3

Browse files
committed
Use make command in CI
1 parent 40da61c commit ddcbdf3

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/go.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ jobs:
2727
uses: actions/checkout@v2
2828
- name: Get dependencies
2929
run: |
30-
go get -v -t -d ./...
30+
make get
31+
- name: Lint Code
32+
run: |
33+
make lint
3134
- name: Test
3235
run: |
33-
go test ./... -v
36+
make test
3437
- name: Build Artifacts
3538
run: |
36-
go build -ldflags="-s -w" -o gcb-visualizer
39+
make build

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
build:
2-
go build -ldflags="-s -w"
2+
go build -ldflags="-s -w" -o gcb-visualizer
33

44
.PHONY: test
55
test:
66
go test -count=1 ./...
77

8+
get:
9+
go get -v -t -d ./...
10+
811
format-lint:
912
errors=$$(gofmt -l .); if [ "$${errors}" != "" ]; then echo "Format Lint Error Files:\n$${errors}"; exit 1; fi
1013

0 commit comments

Comments
 (0)