Skip to content

update readme

update readme #9

name: gotest-coverage
on:
push:
branches:
- master
- main
pull_request:
permissions:
contents: read
pull-requests: read
jobs:
go-test-coverage:
name: Go test coverage check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: Install dependencies
run: go get .
- name: Build
run: go build -v ./...
- name: generate test coverage
run: go test ./... -coverprofile=./cover.out
- name: check test coverage
uses: vladopajic/go-test-coverage@v2
with:
config: ./.testcoverage.yml