Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/codecovMonitor.yml
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 3 additions & 0 deletions cleantalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down