Bump github.com/aws/aws-lambda-go from 1.41.0 to 1.43.0 in /function #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Go | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
job1: | |
name: Style | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
- name: Format Check | |
run: cd function && if [ $(gofmt -l -s . | grep -E -v '^vendor/' | tee /tmp/gofmt.txt | |
| wc -l) -ne 0 ]; then echo "fmt failed:"; cat /tmp/gofmt.txt ; exit 1; | |
fi | |
job2: | |
name: Functionality | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
- name: Build | |
run: cd function && go build -v -tags lambda.norpc ./... | |
- name: Test | |
run: cd function && go test -v -tags lambda.norpc -covermode="count" -coverprofile="/tmp/coverage.out" | |
- name: Coverage Report | |
run: cd function && go tool cover -func="/tmp/coverage.out" | |