Skip to content

chore(deps): bump actions/setup-go from 4 to 5 (#30) #95

chore(deps): bump actions/setup-go from 4 to 5 (#30)

chore(deps): bump actions/setup-go from 4 to 5 (#30) #95

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@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@v3
with:
files: ./coverage.txt
fail_ci_if_error: true
flags: tests
verbose: true