File tree 2 files changed +5
-12
lines changed
2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 7
7
jobs :
8
8
integration :
9
9
runs-on : ubuntu-latest
10
- env :
11
- GOPATH : $HOME/go
12
10
steps :
13
11
- name : Checkout 🛎️
14
12
uses : actions/checkout@master
36
34
if : steps.cache-ci.outputs.cache-hit != 'true'
37
35
run : pip install invoke
38
36
39
- - name : TestSmth
40
- run : |
41
- go install gotest.tools/gotestsum@latest
42
- ls $HOME/go/bin
43
- gotestsum --version
44
- $GOPATH/bin/gotestsum --version
45
-
46
37
- name : Lint 🪶
47
38
run : invoke lint -y
48
39
Original file line number Diff line number Diff line change 4
4
5
5
from invoke import task
6
6
7
+ GOPATH = os .environ .get ("GOPATH" , os .environ .get ("HOME" ) + "/go" )
8
+
7
9
LINTER_VERSION = "1.38.0"
8
- LINTER = "$ GOPATH/bin/golangci-lint"
10
+ LINTER = f" { GOPATH } /bin/golangci-lint"
9
11
10
12
TESTER_VERSION = "version"
11
- TESTER = "$ GOPATH/bin/gotestsum"
13
+ TESTER = f" { GOPATH } /bin/gotestsum"
12
14
13
15
14
16
def fail (message ):
@@ -75,7 +77,7 @@ def installed():
75
77
76
78
c .run (f"go install gotest.tools/gotestsum@latest" )
77
79
c .run (
78
- f"curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sudo sh -s -- -b $ GOPATH/bin v{ LINTER_VERSION } "
80
+ f"curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sudo sh -s -- -b { GOPATH } /bin v{ LINTER_VERSION } "
79
81
)
80
82
81
83
if not installed ():
You can’t perform that action at this time.
0 commit comments