diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 97fd16f1e..469e8e23e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -58,7 +58,7 @@ jobs: env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - - name: Wait for Codecov status + - name: Wait for Codecov patch status uses: actions/github-script@v7 id: codecov_check with: @@ -71,8 +71,8 @@ jobs: return new Promise(resolve => setTimeout(resolve, ms)); } - for (let i = 0; i < 20; i++) { - const { data } = await github.repos.getCombinedStatusForRef({ + for (let i = 0; i < 30; i++) { + const { data } = await github.rest.repos.getCombinedStatusForRef({ owner, repo, ref, @@ -83,11 +83,13 @@ jobs: ); if (codecov) { + core.info(`Codecov state: ${codecov.state}`); core.setOutput("state", codecov.state); return; } - await wait(10000); // ждём 10 сек + core.info("Codecov status not ready yet..."); + await wait(10000); } core.setOutput("state", "not_found"); diff --git a/cleantalk.php b/cleantalk.php index 9053519bb..ede531be2 100644 --- a/cleantalk.php +++ b/cleantalk.php @@ -1210,6 +1210,9 @@ function apbct_sfw_update__init($delay = 0) function apbct_sfw_update__check_requirements() { global $apbct; + $something = 'nothing';// just a change to make sure patch failed. + $something = 'allornothing';// just a change to make sure patch failed. + return $something ?: true; $result = true; try { // The Access key is empty 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"