Skip to content

chore: bump golang.org/x/net from 0.19.0 to 0.23.0 #147

chore: bump golang.org/x/net from 0.19.0 to 0.23.0

chore: bump golang.org/x/net from 0.19.0 to 0.23.0 #147

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.19'
- name: Test
run: TEST_DB=1 TEST_MQ=1 go test ./... -coverprofile=cover.out
timeout-minutes: 5
- 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 }}