Skip to content

Fix missing resource in logs, fix custom batch callback & make batches configurable #197

Fix missing resource in logs, fix custom batch callback & make batches configurable

Fix missing resource in logs, fix custom batch callback & make batches configurable #197

Workflow file for this run

name: Test and coverage
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-image: [ '1.18-bullseye' ]
steps:
- uses: actions/checkout@v3
- name: Remove workspace file
run: rm go.work
- name: Run coverage
run: docker run --rm -v ${{ github.workspace }}:/src -w /src golang:${{ matrix.go-image }} go test ./... -race -coverprofile coverage.out -covermode atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)