Skip to content

Commit 9b26157

Browse files
committed
fix ci 6
1 parent 50cb085 commit 9b26157

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

.github/workflows/integration.yaml

-9
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
jobs:
88
integration:
99
runs-on: ubuntu-latest
10-
env:
11-
GOPATH: $HOME/go
1210
steps:
1311
- name: Checkout 🛎️
1412
uses: actions/checkout@master
@@ -36,13 +34,6 @@ jobs:
3634
if: steps.cache-ci.outputs.cache-hit != 'true'
3735
run: pip install invoke
3836

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-
4637
- name: Lint 🪶
4738
run: invoke lint -y
4839

tasks.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44

55
from invoke import task
66

7+
GOPATH = os.environ.get("GOPATH", os.environ.get("HOME") + "/go")
8+
79
LINTER_VERSION = "1.38.0"
8-
LINTER = "$GOPATH/bin/golangci-lint"
10+
LINTER = f"{GOPATH}/bin/golangci-lint"
911

1012
TESTER_VERSION = "version"
11-
TESTER = "$GOPATH/bin/gotestsum"
13+
TESTER = f"{GOPATH}/bin/gotestsum"
1214

1315

1416
def fail(message):
@@ -75,7 +77,7 @@ def installed():
7577

7678
c.run(f"go install gotest.tools/gotestsum@latest")
7779
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}"
7981
)
8082

8183
if not installed():

0 commit comments

Comments
 (0)