Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version updates to actions configuration #434

Merged
merged 2 commits into from Mar 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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