File tree 3 files changed +27
-5
lines changed
3 files changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,13 @@ jobs:
23
23
- name : Check out code into the Go module directory
24
24
uses : actions/checkout@v2
25
25
26
- - name : Install Tools
26
+ - name : Test (Unix)
27
+ if : runner.os != 'Windows'
27
28
run : |
28
- go install golang.org/x/lint/golint@latest
29
+ make check
29
30
30
- - name : Test
31
+ - name : Test (Windows)
32
+ if : runner.os == 'Windows'
31
33
run : |
32
34
go vet ./...
33
- golint ./...
34
- go test -cover -v ./...
35
+ go test -v ./...
Original file line number Diff line number Diff line change @@ -22,3 +22,5 @@ _testmain.go
22
22
* .exe
23
23
* .test
24
24
* .prof
25
+
26
+ /lint-project.sh
Original file line number Diff line number Diff line change
1
+ .PHONY : check
2
+ check :
3
+ ifeq ($(OS ) ,Windows_NT)
4
+ @echo "Skipping checks on Windows, currently unsupported."
5
+ else
6
+ @wget -O lint-project.sh https://raw.githubusercontent.com/moov-io/infra/master/go/lint-project.sh
7
+ @chmod +x ./lint-project.sh
8
+ COVER_THRESHOLD=75.0 ./lint-project.sh
9
+ endif
10
+
11
+ .PHONY : clean
12
+ clean :
13
+ @rm -rf ./bin/ ./tmp/ coverage.txt misspell* staticcheck lint-project.sh
14
+
15
+ .PHONY : cover-test cover-web
16
+ cover-test :
17
+ go test -coverprofile=cover.out ./...
18
+ cover-web :
19
+ go tool cover -html=cover.out
You can’t perform that action at this time.
0 commit comments