Skip to content

Commit

Permalink
tune workflow to exclude example package
Browse files Browse the repository at this point in the history
Signed-off-by: Silvio Ginter <[email protected]>
  • Loading branch information
sGy1980de committed Dec 20, 2024
1 parent 4ed0e82 commit 872c52c
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,29 @@ jobs:
# Parameter to pass to go tests -covermode argument. Either count, set or atomic
#cover-mode: # optional, default is count
# Parameter to pass to go tests -coverpkg argument. Leave empty to omit flag
#cover-pkg: # optional, default is
cover-pkg: . # optional, default is
# Additional build arguments to pass to go test
#test-args: # optional, default is []
# Package names to test, passed to go test - Multiple arguments should be separated by newlines
#test-pkgs: # optional, default is ./...
test-pkgs: . # optional, default is ./...
# Fail the build if the coverage drops below supplied percentage
#coverage-threshold: # optional, default is 0
# Fail the build if coverage drops below coverage-threshold. One of "always", "never" or "only_pull_requests"
#fail-coverage: # optional, default is only_pull_requests
# Adds a comment to the PR with coverage information if true. If false will only add an action summary report
#add-comment: # optional, default is true
# One or more regular expressions matching filenames to exclude from coverage statistics (e.g. for generated Go files)
ignore-pattern: |
'example/.*'
#ignore-pattern: |
# 'example/.*'
# The refname to use for the git notes. Defaults to gocoverage
#notes-ref: # optional, default is gocoverage
- name: Update coverage badge
uses: schneegans/[email protected]
if: github.ref_name == 'main'
with:
auth: ${{ secrets.COVERAGE_GIST_SECRET }}
gistID: b272dbf4526c9be75f7da96352873a71
filename: gsheets-parser-coverage.json
label: Go Coverage
message: ${{ steps.coverage.outputs.coverage-pct-1dp }}%
color: ${{ steps.coverage.outputs.meets-threshold == 'true' && 'green' || 'red' }}

0 comments on commit 872c52c

Please sign in to comment.