|
5 | 5 | branches: |
6 | 6 | - main |
7 | 7 | - gcovr_github |
8 | | - # paths: |
9 | | - # - .github/workflows/*.yml |
10 | | - # - '**CMakeLists.txt' |
11 | | - # - 'cmake/**' |
12 | | - # - 'examples/**' |
13 | | - # - 'src/**' |
14 | | - # - '!**Makefile' |
15 | | - # - '!**md' |
| 8 | + paths: |
| 9 | + - .github/workflows/*.yml |
| 10 | + - '**CMakeLists.txt' |
| 11 | + - 'cmake/**' |
| 12 | + - 'examples/**' |
| 13 | + - 'src/**' |
| 14 | + - '!**Makefile' |
| 15 | + - '!**md' |
16 | 16 | pull_request: |
17 | 17 | branches: |
18 | 18 | - main |
19 | | - # paths: |
20 | | - # - .github/workflows/*.yml |
21 | | - # - '**CMakeLists.txt' |
22 | | - # - 'cmake/**' |
23 | | - # - 'examples/**' |
24 | | - # - 'src/**' |
25 | | - # - '!**Makefile' |
26 | | - # - '!**md' |
27 | | - # |
| 19 | + paths: |
| 20 | + - .github/workflows/*.yml |
| 21 | + - '**CMakeLists.txt' |
| 22 | + - 'cmake/**' |
| 23 | + - 'examples/**' |
| 24 | + - 'src/**' |
| 25 | + - '!**Makefile' |
| 26 | + - '!**md' |
| 27 | + |
28 | 28 | permissions: |
29 | 29 | contents: read |
30 | 30 |
|
@@ -106,37 +106,37 @@ jobs: |
106 | 106 | root: ${{github.workspace}} |
107 | 107 |
|
108 | 108 | - name: Produce the coverage report |
109 | | - uses: insightsengineering/coverage-action@v3 |
110 | | - with: |
111 | | - # Path to the Cobertura XML report. |
112 | | - path: ./cobertura.xml |
113 | | - # Minimum total coverage, if you want to the |
114 | | - # workflow to enforce it as a standard. |
115 | | - # This has no effect if the `fail` arg is set to `false`. |
116 | | - threshold: 45.00 |
117 | | - # Fail the workflow if the minimum code coverage |
118 | | - # reuqirements are not satisfied. |
119 | | - fail: true |
120 | | - # Publish the rendered output as a PR comment |
121 | | - publish: true |
122 | | - # Create a coverage diff report. |
123 | | - diff: false |
124 | | - # Branch to diff against. |
125 | | - # Compare the current coverage to the coverage |
126 | | - # determined on this branch. |
127 | | - diff-branch: main |
128 | | - # This is where the coverage reports for the |
129 | | - # `diff-branch` are stored. |
130 | | - # Branch is created if it doesn't already exist'. |
131 | | - diff-storage: _xml_coverage_reports |
132 | | - # A custom title that can be added to the code |
133 | | - # coverage summary in the PR comment. |
134 | | - coverage-summary-title: "Code Coverage Summary" |
135 | | - # Failure modes for coverage regression detection: |
136 | | - # Fail if any changed file has more uncovered lines (pycobertura exit code 2) |
137 | | - uncovered-statements-increase-failure: false |
138 | | - # Fail if new uncovered statements are introduced despite overall improvement (pycobertura exit code 3) |
139 | | - new-uncovered-statements-failure: false |
140 | | - # Fail if the overall coverage percentage decreases (more forgiving approach) |
141 | | - coverage-rate-reduction-failure: true |
| 109 | + uses: insightsengineering/coverage-action@v3 |
| 110 | + with: |
| 111 | + # Path to the Cobertura XML report. |
| 112 | + path: ./cobertura.xml |
| 113 | + # Minimum total coverage, if you want to the |
| 114 | + # workflow to enforce it as a standard. |
| 115 | + # This has no effect if the `fail` arg is set to `false`. |
| 116 | + threshold: 45.00 |
| 117 | + # Fail the workflow if the minimum code coverage |
| 118 | + # reuqirements are not satisfied. |
| 119 | + fail: true |
| 120 | + # Publish the rendered output as a PR comment |
| 121 | + publish: true |
| 122 | + # Create a coverage diff report. |
| 123 | + diff: false |
| 124 | + # Branch to diff against. |
| 125 | + # Compare the current coverage to the coverage |
| 126 | + # determined on this branch. |
| 127 | + diff-branch: main |
| 128 | + # This is where the coverage reports for the |
| 129 | + # `diff-branch` are stored. |
| 130 | + # Branch is created if it doesn't already exist'. |
| 131 | + diff-storage: _xml_coverage_reports |
| 132 | + # A custom title that can be added to the code |
| 133 | + # coverage summary in the PR comment. |
| 134 | + coverage-summary-title: "Code Coverage Summary" |
| 135 | + # Failure modes for coverage regression detection: |
| 136 | + # Fail if any changed file has more uncovered lines (pycobertura exit code 2) |
| 137 | + uncovered-statements-increase-failure: false |
| 138 | + # Fail if new uncovered statements are introduced despite overall improvement (pycobertura exit code 3) |
| 139 | + new-uncovered-statements-failure: false |
| 140 | + # Fail if the overall coverage percentage decreases (more forgiving approach) |
| 141 | + coverage-rate-reduction-failure: true |
142 | 142 |
|
0 commit comments