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. diff --git a/cleantalk.php b/cleantalk.php index 9053519bb..0787a642b 100644 --- a/cleantalk.php +++ b/cleantalk.php @@ -1211,6 +1211,9 @@ function apbct_sfw_update__check_requirements() { global $apbct; $result = true; + $test = 'somtehing;;l'; + $test = 'somt'; + 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"