+8
-17
.github/workflows/go.yml
+8
-17
.github/workflows/go.yml
···
9
9
name: Verify
10
10
runs-on: ubuntu-latest
11
11
steps:
12
-
- name: Set up Go 1.13
13
-
uses: actions/setup-go@v1
12
+
- name: Set up Go 1.16
13
+
uses: actions/setup-go@v2
14
14
with:
15
-
go-version: 1.13
16
-
id: go
17
-
18
-
- name: Set up environment
19
-
run: |
20
-
# https://github.com/actions/setup-go/issues/14
21
-
echo "::set-env name=GOPATH::$(go env GOPATH)"
22
-
echo "::add-path::$(go env GOPATH)/bin"
23
-
24
-
- name: Install golangci-lint
25
-
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.1
26
-
15
+
go-version: 1.16
16
+
27
17
- name: Check out code into the Go module directory
28
-
uses: actions/checkout@v1
18
+
uses: actions/checkout@v2
29
19
30
20
- name: Lint
31
-
run: golangci-lint run
21
+
uses: golangci/golangci-lint-action@v2
22
+
with:
23
+
version: v1.28
32
24
33
25
- name: Test
34
26
run: go test -v ./...
35
-