mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 07:02:02 +01:00
Report SAT Errors with GHA Annotations (#11652)
Let's test the GHA annotations for errors also in this repo! Similar to openhab/openhab-core#2543 Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
parent
50d5622e79
commit
1afe90d314
21
.github/openhab-compile-problems.json
vendored
Normal file
21
.github/openhab-compile-problems.json
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"problemMatcher": [
|
||||||
|
{
|
||||||
|
"owner": "openhab-compile-problems",
|
||||||
|
"severity": "error",
|
||||||
|
"pattern": [
|
||||||
|
{
|
||||||
|
"regexp": "Failed to execute goal.*Compilation failure"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"regexp": "^\\[ERROR\\] (.+\\.java):\\[(.+),(.+)\\] (.*)$",
|
||||||
|
"file": 1,
|
||||||
|
"line": 2,
|
||||||
|
"col": 3,
|
||||||
|
"message": 4,
|
||||||
|
"loop": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
13
.github/workflows/ci-build.yml
vendored
13
.github/workflows/ci-build.yml
vendored
@ -54,6 +54,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
maven-version: ${{ matrix.maven }}
|
maven-version: ${{ matrix.maven }}
|
||||||
|
|
||||||
|
- name: Register Problem Matchers
|
||||||
|
id: problem_matchers
|
||||||
|
run: |
|
||||||
|
echo "::add-matcher::.github/openhab-compile-problems.json"
|
||||||
|
|
||||||
- name: Get Changed Files
|
- name: Get Changed Files
|
||||||
id: files
|
id: files
|
||||||
uses: Ana06/get-changed-files@v2.0.0
|
uses: Ana06/get-changed-files@v2.0.0
|
||||||
@ -84,3 +89,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: sat-summary-report
|
name: sat-summary-report
|
||||||
path: target/summary_report.html
|
path: target/summary_report.html
|
||||||
|
|
||||||
|
- name: Report SAT Errors as Annotations
|
||||||
|
uses: ghys/checkstyle-github-action@main
|
||||||
|
if: ${{ always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }}
|
||||||
|
with:
|
||||||
|
title: CheckStyle Violations
|
||||||
|
path: '**/checkstyle-result.xml'
|
||||||
|
mode: inline
|
||||||
|
Loading…
Reference in New Issue
Block a user