Skip to content

Commit 7c73650

Browse files
committed
Cloning into $GOPATH
1 parent 11f324e commit 7c73650

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,22 @@ jobs:
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v2
20+
with:
21+
path: /home/runner/work/jwt/jwt/src/github.com/golang-jwt/jwt
2022
- name: Setup Go
2123
uses: actions/setup-go@v2
2224
with:
2325
go-version: "${{ matrix.go }}"
2426
- name: Build
2527
run: |
26-
go vet ./...
28+
if [[ $GOVERSION =~ ^go1\.16 ]]; then
29+
# go vet does not seem to support GOPATH on Go 1.16
30+
echo not running go vet on Go 1.16
31+
else
32+
go vet ./...
33+
fi
2734
go test -v ./...
2835
go build ./...
36+
env:
37+
GO11MODULES: auto
38+
GOPATH: /home/runner/work/jwt/jwt

0 commit comments

Comments
 (0)