Skip to content

Commit 86915f5

Browse files
committed
report coverage
1 parent a54e139 commit 86915f5

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

.github/workflows/bevy_mod_scripting.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,31 @@ jobs:
7373
cargo xtask init
7474
- name: Check
7575
run: |
76-
${{ matrix.run_args.command }}
76+
${{ matrix.run_args.command }}
77+
- name: Report code coverage
78+
uses: dethereum/github-actions-report-lcov@v1.0.0
79+
- name: Upload existing lcov files if any exist
80+
uses: actions/upload-artifact@v2
81+
with:
82+
name: lcov-${{ matrix.run_args.os }}-${{ matrix.run_args.name }}
83+
path: |
84+
**/lcov.*
85+
if-no-files-found: ignore
86+
87+
report-coverage:
88+
permissions:
89+
pull-requests: write
90+
steps:
91+
- name: Download all lcov files
92+
uses: actions/download-artifact@v2
93+
with:
94+
merge-multiple: true
95+
pattern: lcov-*
96+
download-path: coverage
97+
- name: Report code coverage
98+
uses: dethereum/github-actions-report-lcov@v1.0.0
99+
with:
100+
coverage-files: coverage/lcov.*
101+
minimum-coverage: 50
102+
artifact-name: code-coverage-report
103+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)