Skip to content

Commit

Permalink
Fix paths in .octocov.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nowsprinting committed Apr 28, 2024
1 parent eebba86 commit a4687ca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
id: test

- name: Set coverage path for octocov
run: sed -i -r 's/\.\/Logs/${{ steps.test.outputs.coveragePath }}/' .octocov.yml
run: sed -i -r 's/UnityProject~\/Logs/${{ steps.test.outputs.coveragePath }}/' .octocov.yml
if: ${{ matrix.octocov }}

- name: Run octocov
Expand Down
16 changes: 9 additions & 7 deletions .octocov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@
coverage:
if: true
paths:
- ./Logs/Report/lcov.info # Warning: This path is replace by regex in test.yml
- UnityProject~/Logs/Report/lcov.info # Warning: This path is to be replaced by regex in test.yml

codeToTestRatio:
code:
- 'Editor/**/*.cs'
- 'Runtime/**/*.cs'
- 'Samples~/**/*.cs'
- '!Samples~/**/Tests/**/*.cs'
- '**/*.cs'
- '!**/Tests/**'
- '!UnityProject~/Library/**'
test:
- 'Tests/**/*.cs'
- 'Samples~/**/Tests/**/*.cs'
- '**/Tests/**/*.cs'
- '!UnityProject~/Library/**'

testExecutionTime:
if: true

diff:
datastores:
- artifact://${GITHUB_REPOSITORY}
Expand Down

0 comments on commit a4687ca

Please sign in to comment.