Skip to content

Commit

Permalink
add test coverage check
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Dec 23, 2023
1 parent bcaf7b1 commit dd2b835
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.20.1
go-version: 1.21

- uses: actions/checkout@v3

Expand All @@ -20,4 +20,7 @@ jobs:
if: matrix.os == 'ubuntu-latest'

- name: test
run: go test ./...
run: go test -coverprofile="coverage.out" ./...

- name: check coverage
run: go run github.com/ysmood/got/cmd/check-cov@latest -min 80
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.out

0 comments on commit dd2b835

Please sign in to comment.