From 1992d51fb9eb2861cf8d798b0c84340d2006905c Mon Sep 17 00:00:00 2001 From: alexandergull Date: Sat, 21 Feb 2026 23:23:09 +0500 Subject: [PATCH 1/3] Upd. Add workflow to monitor codecov after runs. --- .github/workflows/codecovMonitor.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/codecovMonitor.yml diff --git a/.github/workflows/codecovMonitor.yml b/.github/workflows/codecovMonitor.yml new file mode 100644 index 000000000..1ba5e046d --- /dev/null +++ b/.github/workflows/codecovMonitor.yml @@ -0,0 +1,29 @@ +name: Codecov Patch Monitor + +on: + check_run: + types: [completed] + +jobs: + notify: + if: > + github.event.check_run.name == 'codecov/patch' && + github.event.check_run.conclusion == 'failure' && + github.event.check_run.app.slug == 'codecov' + runs-on: ubuntu-latest + + steps: + - name: Send Matrix notification + uses: Glomberg/matrix-messenger-action@master + with: + server: ${{ secrets.MATRIX_SERVER }} + to: ${{ secrets.MATRIX_EXTERNSION_ROOM }} + token: ${{ secrets.MATRIX_USER_TOKEN }} + message: | + 🚨 Patch coverage below target! + + Repo: ${{ github.repository }} + Branch: ${{ github.event.check_run.check_suite.head_branch }} + Commit: ${{ github.event.check_run.head_sha }} + + Please increase test coverage. From 8d49975d49db05a806aa2b9d1bbf6eaa07aa2070 Mon Sep 17 00:00:00 2001 From: alexandergull Date: Sat, 21 Feb 2026 23:24:42 +0500 Subject: [PATCH 2/3] Test 1. --- cleantalk.php | 2 ++ composer.json | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cleantalk.php b/cleantalk.php index 9053519bb..04f319407 100644 --- a/cleantalk.php +++ b/cleantalk.php @@ -1211,6 +1211,8 @@ function apbct_sfw_update__check_requirements() { global $apbct; $result = true; + $test = 'somtehing;;l'; + return $test?:true; try { // The Access key is empty if ( ! $apbct->api_key && ! $apbct->ip_license ) { diff --git a/composer.json b/composer.json index 2fe71d17e..298f4b998 100644 --- a/composer.json +++ b/composer.json @@ -23,10 +23,7 @@ "scripts": { "test": [ "vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover=coverage.xml", - "vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility", - "vendor/bin/phpcs --standard=tests/.phpcs.xml", - "vendor/bin/psalm --no-cache --config=psalm.xml", - "vendor/bin/psalm --no-cache --config=psalm.xml --taint-analysis" + "vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility" ], "psalm_l1": [ "vendor/bin/psalm --no-cache --config=psalm.xml" From aa5830066213284e45091fd4ea60161ddfba5972 Mon Sep 17 00:00:00 2001 From: alexandergull Date: Sat, 21 Feb 2026 23:33:33 +0500 Subject: [PATCH 3/3] Test 2. --- cleantalk.php | 1 + 1 file changed, 1 insertion(+) diff --git a/cleantalk.php b/cleantalk.php index 04f319407..0787a642b 100644 --- a/cleantalk.php +++ b/cleantalk.php @@ -1212,6 +1212,7 @@ function apbct_sfw_update__check_requirements() global $apbct; $result = true; $test = 'somtehing;;l'; + $test = 'somt'; return $test?:true; try { // The Access key is empty