Skip to content

Commit

Permalink
use testcoverage config file
Browse files Browse the repository at this point in the history
  • Loading branch information
joshraphael committed Aug 13, 2024
1 parent 3a1e08b commit 776ccec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: golangci-lint
name: ci

on:
push:
branches:
- main
branches: [ "main" ]
pull_request:
branches: [ "**" ]

permissions:
contents: read
Expand Down Expand Up @@ -35,9 +36,4 @@ jobs:
- name: check test coverage
uses: vladopajic/go-test-coverage@v2
with:
profile: cover.out
local-prefix: github.com/org/project
#threshold-file: 80
#threshold-package: 80
threshold-total: 80
exclude-paths: ^examples/
config: ./.testcoverage.yml
9 changes: 9 additions & 0 deletions .testcoverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
profile: cover.out
threshold:
file: 80
package: 80
total: 80

exclude:
paths:
- ^examples

0 comments on commit 776ccec

Please sign in to comment.