Skip to content

Update golangci-lint.yaml #7

Update golangci-lint.yaml

Update golangci-lint.yaml #7

Workflow file for this run

name: Coverage
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
go-test-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- name: Generate test coverage
run: go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./...
- name: Check test coverage
uses: vladopajic/go-test-coverage@v2
with:
config: ./.testcoverage.yml
git-token: ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }}
git-branch: badges