File tree 3 files changed +18
-16
lines changed
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 :
3
3
push :
4
4
pull_request :
5
5
6
6
jobs :
7
-
8
- test :
9
- name : lint
7
+ lint :
8
+ name : run golangci-golint on the project
10
9
runs-on : ubuntu-latest
11
10
steps :
12
- - name : Set up Go 1.13
13
- uses : actions/setup-go@v1
11
+ - uses : actions/setup-go@v2
14
12
with :
15
- go-version : 1.13
16
- id : go
13
+ go-version : ' ^1'
14
+
15
+ - run : go version
17
16
18
- - name : Check out code into the Go module directory
19
- uses : actions/checkout@v1
17
+ - uses : actions/checkout@v2
20
18
21
19
- name : golangci-golint
22
20
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
24
22
./bin/golangci-lint run -v ./...
25
-
23
+
Original file line number Diff line number Diff line change 10
10
strategy :
11
11
matrix :
12
12
go :
13
+ - " 1.18"
13
14
- " 1.17"
14
15
- " 1.16"
15
16
- " 1.15"
@@ -18,13 +19,14 @@ jobs:
18
19
19
20
steps :
20
21
- name : Set up Go ${{ matrix.go }}
21
- uses : actions/setup-go@v1
22
+ uses : actions/setup-go@v2
22
23
with :
23
24
go-version : ${{ matrix.go }}
24
- id : go
25
+
26
+ - run : go version
25
27
26
28
- name : Check out code into the Go module directory
27
- uses : actions/checkout@v1
29
+ uses : actions/checkout@v2
28
30
29
31
- name : go test
30
32
run : go test -race -coverprofile=coverage.txt -covermode=atomic ./...
36
38
env_vars : GO
37
39
env :
38
40
GO : ${{ matrix.go }}
41
+
Original file line number Diff line number Diff line change 1
1
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved
2
2
3
+ //go:build !lambda.norpc
3
4
// +build !lambda.norpc
4
5
5
6
package lambda
You can’t perform that action at this time.
0 commit comments