Skip to content

added aws_client_name to all metadata aware inputs and outputs #3432

added aws_client_name to all metadata aware inputs and outputs

added aws_client_name to all metadata aware inputs and outputs #3432

Workflow file for this run

name: Gosoline
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
terraform-fmt:
name: terraform fmt
runs-on: ubuntu-20.04
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Execute terraform fmt -check -recursive .
run: terraform fmt -check -recursive .
go-fmt:
name: go fmt
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Execute gofmt -l .
run: gofmt -l .
- name: Execute test -z $(gofmt -l .)
run: test -z $(gofmt -l .)
mockery:
name: mockery
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Install mockery
run: go install github.com/vektra/mockery/[email protected]
- name: Execute mockery
run: go generate -run='mockery' ./...
- name: Check for empty diff
run: |
git add -A *
changes=$(git status -s | grep -E '^[ ]?M|A') || true
if [ "0" != $(echo -n $changes | wc -c) ]; then
git status -s | grep -E '^[ ]?M|A'
echo "please check the file list above and (re-)create those mocks locally with the mockery version v2.22.1!"
echo "here's the diff:"
git diff HEAD~0
echo "end of diff"
exit 1
fi
build:
name: go build
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get dependencies
run: go get -v -t -d ./...
- name: Build
run: go build -v ./...
go-vet:
name: static code analysis (go vet)
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get dependencies
run: go get -v -t -d ./...
- name: Static code analysis
run: go vet ./...
golangci-lint:
name: static code analysis (golangci-lint)
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Static code analysis (golangci-lint)
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
args: --timeout 5m --print-issued-lines --print-linter-name --disable structcheck --disable unused
go-test:
name: go test
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get dependencies
run: go get -v -t -d ./...
- name: Test
run: go test ./...
go-test-race:
name: go test (race)
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get dependencies
run: go get -v -t -d ./...
- name: Test (race)
run: go test -race ./...
go-test-integration:
name: go test (integration)
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get dependencies
run: go get -v -t -d ./...
- name: Integration tests
run: go test -p 2 --tags='integration,fixtures' ./test/...
go-test-integration-race:
name: go test (integration, race)
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get dependencies
run: go get -v -t -d ./...
- name: Integration tests (race)
run: go test -p 2 -race --tags='integration,fixtures' ./test/...