Skip to content

ci: enable codecov report on branch #15

ci: enable codecov report on branch

ci: enable codecov report on branch #15

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "coverage" ]
pull_request:
branches: [ "coverage" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Test # only test a simple pkg.
run: go test -covermode=atomic -coverprofile=coverage.out -v ./pkg/config/... ./pkg/metrics/...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
flags: unit,integration
verbose: true