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
10 changes: 6 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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,
Expand All @@ -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");
Expand Down
3 changes: 3 additions & 0 deletions cleantalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
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