Skip to content

Rework

Rework #162

Workflow file for this run

name: goamqp
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
tests:
runs-on: ubuntu-latest
services:
rabbitmq:
image: rabbitmq:management
env:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: password
ports:
- 5672:5672
- 15672:15672
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
- name: Tests
run: |
go test -p 1 -mod=readonly -race -v --tags=integration -coverprofile=coverage.txt -covermode=atomic -coverpkg=$(go list ./... | tr '\n' , | sed 's/,$//') ./...
go tool cover -func=coverage.txt
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: ./coverage.txt
fail_ci_if_error: true
flags: tests
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true