Skip to content

Auto-generated Pull Request for fix/empty-publication #1541

Auto-generated Pull Request for fix/empty-publication

Auto-generated Pull Request for fix/empty-publication #1541

Workflow file for this run

name: Test coverage
on:
pull_request:
types: [edited, labeled, opened, synchronize, reopened]
jobs:
test:
name: Unit tests
runs-on: ubuntu-latest
services:
redis:
image: redis:7.0.12-alpine
ports:
- 6379/tcp
steps:
- name: set up golang
uses: actions/setup-go@v5
with:
go-version: '~1.21.5'
- name: check out code
uses: actions/checkout@v4
- name: unit test
run: go test -covermode=atomic -coverprofile=profile.cov -v ./...
env:
REDIS_SERVICE_HOST: localhost
REDIS_SERVICE_PORT: ${{ job.services.redis.ports[6379] }}
GOPROXY: https://proxy.golang.org
- name: upload coverage to codecov
uses: codecov/codecov-action@v4
with:
file: ./profile.cov