Skip to content

Bump github.com/aws/aws-sdk-go from 1.53.13 to 1.53.14 #635

Bump github.com/aws/aws-sdk-go from 1.53.13 to 1.53.14

Bump github.com/aws/aws-sdk-go from 1.53.13 to 1.53.14 #635

Workflow file for this run

name: Build and test Go
on:
push:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.18
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Check out source code
uses: actions/checkout@v2
- name: Build
env:
GOPROXY: "https://proxy.golang.org"
run: make build
- name: Unit Tests
env:
GOPROXY: "https://proxy.golang.org"
run: make test
- name: Quality Gate
env:
TESTCOVERAGE_THRESHOLD: 72.5
run: |
echo "Quality Gate: checking test coverage is above threshold ..."
echo "Threshold : $TESTCOVERAGE_THRESHOLD %"
totalCoverage=`go tool cover -func=coverage.out | grep total | grep -Eo '[0-9]+\.[0-9]+'`
echo "Current test coverage : $totalCoverage %"
if (( $(echo "$totalCoverage $TESTCOVERAGE_THRESHOLD" | awk '{print ($1 > $2)}') )); then
echo "OK"
else
echo "Current test coverage is below threshold. Please add more unit tests or adjust threshold to a lower value."
echo "Failed"
exit 1
fi