Skip to content

Commit c69859f

Browse files
committed
analysis
Signed-off-by: Anton Dukhovnikov <[email protected]>
1 parent 2de938f commit c69859f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/analysis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,14 @@ jobs:
7777
with:
7878
logfile: ${{ github.workspace }}/build/compile_commands.json
7979
config: '/home/runner/work/rawtoaces/rawtoaces/tests/static_analysis/codechecker.json'
80+
diff: true
8081

8182
- uses: actions/upload-artifact@v4
82-
if: ${{ steps.codechecker.outputs.warnings == 'true' }}
83+
if: ${{ steps.codechecker.outputs.warnings_in_diff == 'true' }}
8384
with:
8485
name: "CodeChecker Bug Reports"
85-
path: ${{ steps.codechecker.outputs.result-html-dir }}
86-
# path: ${{ steps.codechecker.outputs.diff-html-dir }}
86+
# path: ${{ steps.codechecker.outputs.result-html-dir }}
87+
path: ${{ steps.codechecker.outputs.diff-html-dir }}
8788

8889
- uses: actions/upload-artifact@v4
8990
if: false # set to `true` to write out the raw output for diff-ing
@@ -92,5 +93,5 @@ jobs:
9293
path: ${{ steps.codechecker.outputs.analyze-output }}
9394

9495
- name: "Break build if CodeChecker reported any findings"
95-
if: ${{ steps.codechecker.outputs.warnings == 'true' }}
96+
if: ${{ steps.codechecker.outputs.warnings_in_diff == 'true' }}
9697
run: exit 1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"analyze": [
33
"--skip=/home/runner/work/rawtoaces/rawtoaces/tests/static_analysis/skipfile.txt"
4+
],
5+
"diff": [
6+
"--basename=/home/runner/work/rawtoaces/rawtoaces/tests/static_analysis/snapshot"
47
]
58
}

0 commit comments

Comments
 (0)