Skip to content

Commit c2f86d2

Browse files
committed
version updates to actions configuration
1 parent 3afc312 commit c2f86d2

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

.github/workflows/lint.yml

+11-13
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
1-
name: tests
2-
on:
1+
name: lint
2+
on:
33
push:
44
pull_request:
55

66
jobs:
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+

.github/workflows/tests.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
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 ./...
@@ -36,3 +38,4 @@ jobs:
3638
env_vars: GO
3739
env:
3840
GO: ${{ matrix.go }}
41+

lambda/rpc.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved
22

3+
//go:build !lambda.norpc
34
// +build !lambda.norpc
45

56
package lambda

0 commit comments

Comments
 (0)