Skip to content

Commit

Permalink
Merge pull request #47 from harakeishi/add_octcov
Browse files Browse the repository at this point in the history
add octcov
  • Loading branch information
harakeishi committed Aug 16, 2022
2 parents f5d92a1 + f2c139d commit 79afd67
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ jobs:
with:
version: latest
- name: testing
run: go test ./...
run: go test ./... -coverprofile=coverage.out
- name: create report
uses: k1LoW/octocov-action@v0
20 changes: 20 additions & 0 deletions .octocov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
coverage:
paths:
- coverage.out
codeToTestRatio:
code:
- '**/*.go'
- '!**/*_test.go'
test:
- '**/*_test.go'
testExecutionTime:
if: true
comment:
if: is_pull_request
report:
if: is_default_branch
datastores:
- artifact://${GITHUB_REPOSITORY}
diff:
datastores:
- artifact://${GITHUB_REPOSITORY}

0 comments on commit 79afd67

Please sign in to comment.