Skip to content

chore: bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.61.2 to 1.66.3 #192

chore: bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.61.2 to 1.66.3

chore: bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.61.2 to 1.66.3 #192

name: Test Coverage
on: [ pull_request ]
jobs:
pr-test:
if: ${{ github.event_name }} == 'pull_request'
permissions:
pull-requests: write
contents: read
runs-on: ubuntu-latest
services:
postgres:
image: postgres:12-alpine
env:
POSTGRES_PASSWORD: example
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- "5432:5432"
mq:
image: rabbitmq:3-management
ports:
- 5672:5672
- 15672:15672
env:
ALLOW_ANONYMOUS_LOGIN: "yes"
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: Test
run: TEST_DB=1 TEST_MQ=1 go test ./... -coverprofile=cover.out
timeout-minutes: 5
env:
AWS_ACCESS_KEY_ID: ${{ secrets.TESTING_AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TESTING_AWS_SECRET_KEY }}
- name: Install dependencies
run: go install github.com/axw/gocov/gocov@v1.1.0 && go install github.com/AlekSi/gocov-xml@v1.1.0
- run: gocov convert cover.out | gocov-xml > coverage.xml
- name: Code Coverage Summary
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: coverage.xml
badge: true
format: markdown
output: both
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2.6.2
with:
recreate: true
path: code-coverage-results.md
number: ${{ github.event.number }}