From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 27 Nov 2025 14:01:20 +0000 (-0500) Subject: Add problem matcher X-Git-Tag: rec-5.4.0-beta1~45^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b72808869599310b930a7e9d69207bb68ff7f9f7;p=thirdparty%2Fpdns.git Add problem matcher Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- diff --git a/.github/actions/problem-matchers/action.yml b/.github/actions/problem-matchers/action.yml new file mode 100644 index 0000000000..2a914105ab --- /dev/null +++ b/.github/actions/problem-matchers/action.yml @@ -0,0 +1,12 @@ +name: 'Define problem matchers' +description: 'Set up problem matchers' + +runs: + using: "composite" + steps: + - name: add problem matchers + working-directory: . + shell: bash + run: | + : Add problem matchers + echo "::add-matcher::$GITHUB_WORKSPACE/.github/actions/problem-matchers/basic.json" diff --git a/.github/actions/problem-matchers/basic.json b/.github/actions/problem-matchers/basic.json new file mode 100644 index 0000000000..242ff35aa0 --- /dev/null +++ b/.github/actions/problem-matchers/basic.json @@ -0,0 +1,109 @@ +{ + "problemMatcher": [ + { + "owner": "pdns-compilation-fatal-error", + "severity": "error", + "pattern": [ + { + "regexp": "^\\s*(?:\\.\\./)*(\\S+):(\\d+):(\\d+): (?:fatal |)error: (.*)", + "file": 1, + "line": 2, + "column": 3, + "message": 4 + } + ] + }, + { + "owner": "pdns-compilation-error", + "severity": "error", + "pattern": [ + { + "regexp": "(?:(?:^| )\\.\\.|-git\\d+)/([^:]+):(\\d+):(\\d+): error: (.*)", + "file": 1, + "line": 2, + "column": 3, + "message": 4 + } + ] + }, + { + "owner": "pdns-error", + "severity": "error", + "pattern": [ + { + "regexp": "(?