Skip to content

PBM add codecov flag for unittests #14

PBM add codecov flag for unittests

PBM add codecov flag for unittests #14

Workflow file for this run

name: 'codecov'
on:
push:
branches:
- dev
jobs:
go-test:
name: runner / go-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: "1.22"
- name: test
run: go test -v ./... -covermode=atomic -coverprofile=cover.out
- name: upload coverage report
uses: codecov/codecov-action@v4
with:
file: cover.out
flags: unittests
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}