Skip to content

Commit

Permalink
Merge pull request #95 from k1LoW/octocov
Browse files Browse the repository at this point in the history
Use octocov
  • Loading branch information
k1LoW committed Feb 11, 2022
2 parents 2b3f30a + de00227 commit 92dab59
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 13 deletions.
6 changes: 0 additions & 6 deletions .codecov.yml

This file was deleted.

7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install graphviz
sudo pip install codecov
- name: Check out source code
uses: actions/checkout@v2
Expand All @@ -42,7 +41,5 @@ jobs:
with:
add: 'docs/ example/'

- name: Run codecov
run: codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Run octocov
uses: k1LoW/octocov-action@v0
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ndiag
/archdoc/
/ndiag.descriptions/
/ndiag.icons/
coverage.txt
coverage.out
*-packr.go
.envrc
.go-version
Expand Down
20 changes: 20 additions & 0 deletions .octocov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# generated by octocov init
coverage:
if: true
codeToTestRatio:
code:
- '**/*.go'
- '!**/*_test.go'
test:
- '**/*_test.go'
testExecutionTime:
if: true
diff:
datastores:
- artifact://${GITHUB_REPOSITORY}
comment:
if: is_pull_request
report:
if: is_default_branch
datastores:
- artifact://${GITHUB_REPOSITORY}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ default: test
ci: depsdev test sec

test:
go test ./... -coverprofile=coverage.txt -covermode=count
go test ./... -coverprofile=coverage.out -covermode=count

sec:
gosec ./...
Expand Down

0 comments on commit 92dab59

Please sign in to comment.