Skip to content

update README.md

update README.md #12

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
paths:
- '**/*.go'
workflow_dispatch:
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: Test
run: go test -coverprofile=test.coverage.tmp -coverpkg=$(go list ./... | paste -sd ',' -) ./... && cat test.coverage.tmp | grep -v 'mock' > test.coverage && go tool cover -func test.coverage
- name: check test coverage
uses: vladopajic/go-test-coverage@v2
with:
profile: test.coverage
local-prefix: github.com/org/project
threshold-file: 0
threshold-package: 0
threshold-total: 0
git-token: ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }}
git-branch: badges