File tree 2 files changed +17
-6
lines changed
2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
12
+ golangci-lint :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+
16
+ - uses : actions/setup-go@v2
17
+ with :
18
+ go-version : ' 1.17'
19
+
20
+ - uses : actions/checkout@v2
21
+
22
+ - uses : golangci/golangci-lint-action@v2
23
+ with :
24
+ version : latest
25
+ args : --verbose
12
26
13
27
test-unix :
14
28
strategy :
@@ -40,16 +54,14 @@ jobs:
40
54
41
55
- run : |
42
56
export GOBIN=$HOME/go/bin
43
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | bash -s -- -b $GOBIN latest
44
57
case "${{ matrix.go }}" in
45
58
16|17) _version='@latest';;
46
59
*) _version='';;
47
60
esac
48
61
go install github.com/kyoh86/richgo"${_version}"
49
62
go install github.com/mitchellh/gox"${_version}"
50
63
51
- - run : PATH=$HOME/go/bin/:$PATH make
52
-
64
+ - run : PATH=$HOME/go/bin/:$PATH make test cobra_generator
53
65
54
66
test-win :
55
67
name : MINGW64
82
94
83
95
- run : |
84
96
export GOBIN=$HOME/go/bin
85
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | bash -s -- -b $GOBIN latest
86
97
go install github.com/kyoh86/richgo@latest
87
98
go install github.com/mitchellh/gox@latest
88
99
89
- - run : PATH=$HOME/go/bin:$PATH make
100
+ - run : PATH=$HOME/go/bin:$PATH make test cobra_generator
Original file line number Diff line number Diff line change 23
23
$(info ******************** running lint tools ******************** )
24
24
golangci-lint run -v
25
25
26
- test : install_deps lint
26
+ test : install_deps
27
27
$(info ******************** running tests ******************** )
28
28
richgo test -v ./...
29
29
You can’t perform that action at this time.
0 commit comments