Skip to content

Commit b4d94b2

Browse files
authored
Merge pull request #30 from relastle/develop
Update: integration test seperable from build phase
2 parents 6fdfe1f + b139d2b commit b4d94b2

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/go.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ jobs:
2626
2727
- name: Build
2828
run: go build -v .
29+
30+
- name: test
31+
run: go test -v ./src

Makefile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,22 @@ bench:
1818
docker:
1919
docker build -t relastle/pmy:0.1.0 -f docker/Dockerfile .
2020

21+
.PHONY: lint
22+
lint:
23+
golangci-lint run ./...
24+
2125
.PHONY: test
2226
test: lint
2327
go test -v ./src
2428

2529
.PHONY: integration_test
26-
integration_test: main test
30+
integration_test:
2731
(cd ./integration_test && go test -v -run .)
2832

29-
.PHONY: lint
30-
lint:
31-
golangci-lint run ./...
33+
.PHONY: test_all
34+
test_all:
35+
$(MAKE) main
36+
$(MAKE) test
37+
$(MAKE) integration_test
38+
3239

0 commit comments

Comments
 (0)