Skip to content

chore: update to go 1.21 in go.mod (#31) #91

chore: update to go 1.21 in go.mod (#31)

chore: update to go 1.21 in go.mod (#31) #91

Workflow file for this run

name: goamqp
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
tests:
runs-on: ubuntu-latest
services:
rabbitmq:
image: rabbitmq
env:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: password
ports:
- 5672:5672
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
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@v3
with:
files: ./coverage.txt
fail_ci_if_error: true
flags: tests
verbose: true