Skip to content

Commit

Permalink
version updates to actions configuration (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmoffatt committed Mar 26, 2022
1 parent adf9127 commit 1900022
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/lint.yml
@@ -1,25 +1,23 @@
name: tests
on:
name: lint
on:
push:
pull_request:

jobs:

test:
name: lint
lint:
name: run golangci-golint on the project
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
- uses: actions/setup-go@v2
with:
go-version: 1.13
id: go
go-version: '^1'

- run: go version

- name: Check out code into the Go module directory
uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: golangci-golint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.27.0
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.45.0
./bin/golangci-lint run -v ./...
9 changes: 6 additions & 3 deletions .github/workflows/tests.yml
Expand Up @@ -10,6 +10,7 @@ jobs:
strategy:
matrix:
go:
- "1.18"
- "1.17"
- "1.16"
- "1.15"
Expand All @@ -18,13 +19,14 @@ jobs:

steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
id: go

- run: go version

- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: go test
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
Expand All @@ -36,3 +38,4 @@ jobs:
env_vars: GO
env:
GO: ${{ matrix.go }}

1 change: 1 addition & 0 deletions lambda/rpc.go
@@ -1,5 +1,6 @@
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved

//go:build !lambda.norpc
// +build !lambda.norpc

package lambda
Expand Down

0 comments on commit 1900022

Please sign in to comment.