Skip to content

Test coverage

Test coverage #22137

Workflow file for this run

name: Test coverage
on:
push:
tags:
- v*
branches:
- main
pull_request:
paths-ignore:
- 'release/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
check-latest: true
cache: true
- name: Run go test with coverage
run: COVER_PROFILE=coverage.txt make coverage-unit-test
- name: Codecov upload
uses: codecov/codecov-action@v4.4.1
with:
files: ./coverage.txt
token: ${{ secrets.CODECOV_TOKEN }}