File tree Expand file tree Collapse file tree 3 files changed +18
-16
lines changed
Expand file tree Collapse file tree 3 files changed +18
-16
lines changed Original file line number Diff line number Diff line change 1- name : tests
2- on :
1+ name : lint
2+ on :
33 push :
44 pull_request :
55
66jobs :
7-
8- test :
9- name : lint
7+ lint :
8+ name : run golangci-golint on the project
109 runs-on : ubuntu-latest
1110 steps :
12- - name : Set up Go 1.13
13- uses : actions/setup-go@v1
11+ - uses : actions/setup-go@v2
1412 with :
15- go-version : 1.13
16- id : go
13+ go-version : ' ^1'
14+
15+ - run : go version
1716
18- - name : Check out code into the Go module directory
19- uses : actions/checkout@v1
17+ - uses : actions/checkout@v2
2018
2119 - name : golangci-golint
2220 run : |
23- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.27 .0
21+ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.45 .0
2422 ./bin/golangci-lint run -v ./...
25-
23+
Original file line number Diff line number Diff line change 1010 strategy :
1111 matrix :
1212 go :
13+ - " 1.18"
1314 - " 1.17"
1415 - " 1.16"
1516 - " 1.15"
@@ -18,13 +19,14 @@ jobs:
1819
1920 steps :
2021 - name : Set up Go ${{ matrix.go }}
21- uses : actions/setup-go@v1
22+ uses : actions/setup-go@v2
2223 with :
2324 go-version : ${{ matrix.go }}
24- id : go
25+
26+ - run : go version
2527
2628 - name : Check out code into the Go module directory
27- uses : actions/checkout@v1
29+ uses : actions/checkout@v2
2830
2931 - name : go test
3032 run : go test -race -coverprofile=coverage.txt -covermode=atomic ./...
3638 env_vars : GO
3739 env :
3840 GO : ${{ matrix.go }}
41+
Original file line number Diff line number Diff line change 11// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved
22
3+ //go:build !lambda.norpc
34// +build !lambda.norpc
45
56package lambda
You can’t perform that action at this time.
0 commit comments