Skip to content

Commit

Permalink
Merge pull request #602 from fuller-inc/introduce-octocov
Browse files Browse the repository at this point in the history
introduce octocov
  • Loading branch information
shogo82148 authored Sep 21, 2023
2 parents 7c58023 + bca198d commit fdfbff0
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
permissions:
id-token: write
contents: read
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -28,9 +29,16 @@ jobs:
make test
working-directory: provider/assume-role

- name: report coverage
uses: k1LoW/octocov-action@v0

action:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
permissions:
id-token: write
contents: read
pull-requests: write
strategy:
fail-fast: false
matrix:
Expand Down
18 changes: 18 additions & 0 deletions .octocov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# generated by octocov init
coverage:
if: true
paths:
- provider/assume-role/coverage.out
testExecutionTime:
if: true
diff:
datastores:
- artifact://${GITHUB_REPOSITORY}
comment:
if: is_pull_request
summary:
if: true
report:
if: is_default_branch
datastores:
- artifact://${GITHUB_REPOSITORY}
1 change: 1 addition & 0 deletions provider/assume-role/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/coverage.out
2 changes: 1 addition & 1 deletion provider/assume-role/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ build-ProviderFunction:

.PHONY: test
test:
go test -v ./...
go test -v -coverprofile=coverage.out ./...

0 comments on commit fdfbff0

Please sign in to comment.