From 26447610d43f3868e7726261b6c79be4ccf6a14b Mon Sep 17 00:00:00 2001 From: Fabian Wolter Date: Sat, 11 Dec 2021 19:55:20 +0100 Subject: [PATCH] Add GHA for compiler warnings and enable actions for forked repos Signed-off-by: Fabian Wolter --- .github/openhab-compile-problems.json | 13 +++++++++++++ .github/workflows/ci-build.yml | 2 -- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/openhab-compile-problems.json b/.github/openhab-compile-problems.json index a5c5c4bb9dc51..c2ca65583a433 100644 --- a/.github/openhab-compile-problems.json +++ b/.github/openhab-compile-problems.json @@ -16,6 +16,19 @@ "loop": true } ] + }, + { + "owner": "openhab-compile-warnings", + "severity": "warning", + "pattern": [ + { + "regexp": "^\\[WARNING\\] (.+\\.java):\\[(.+),(.+)\\] (.*)$", + "file": 1, + "line": 2, + "col": 3, + "message": 4 + } + ] } ] } diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 24c0cc756f00d..873b6b46bfbe5 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -2,8 +2,6 @@ name: CI on: push: - branches: - - 'main' paths-ignore: - '.github/**/*.md' pull_request: