Skip to content

Commit b666609

Browse files
authored
Remove deprecated actions commands (#22)
1 parent 8cd57be commit b666609

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.github/workflows/go.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,18 @@ jobs:
99
name: Verify
1010
runs-on: ubuntu-latest
1111
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
1414
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+
2717
- name: Check out code into the Go module directory
28-
uses: actions/checkout@v1
18+
uses: actions/checkout@v2
2919

3020
- name: Lint
31-
run: golangci-lint run
21+
uses: golangci/golangci-lint-action@v2
22+
with:
23+
version: v1.28
3224

3325
- name: Test
3426
run: go test -v ./...
35-

0 commit comments

Comments
 (0)