Skip to content

chore: fix golang lint #9

chore: fix golang lint

chore: fix golang lint #9

Workflow file for this run

name: codecov
on:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after }}
cancel-in-progress: true
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2.1.3
with:
go-version: 1.20.4
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test and update codecov
run: |
go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- uses: codecov/codecov-action@v1.5.0
with:
file: ./coverage.txt
flags: unittests
fail_ci_if_error: true