Skip to content

refactoring

refactoring #20870

Workflow file for this run

name: CodeCov
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Run coverage
run: go test -coverprofile=coverage.txt -covermode atomic -race -tags=unit -v ./internal/...
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: ./coverage.txt # optional
flags: unittests # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)