From 4432990671c4987db8a6369d878bf744bd7dd563 Mon Sep 17 00:00:00 2001 From: gevorgmansuryan Date: Tue, 21 Oct 2025 19:42:01 +0400 Subject: [PATCH 1/2] Implement module-coding-standards --- .github/workflows/codeception-develop.yml | 15 +++++++++++++++ .github/workflows/codeception-master.yml | 14 ++++++++++++++ .github/workflows/codeception-min-version.yml | 15 +++++++++++++++ .github/workflows/codeception-next.yml | 15 +++++++++++++++ .github/workflows/php-cs-fixer.yml | 8 +++++--- .github/workflows/php-test-develop.yml | 14 -------------- .github/workflows/php-test-master.yml | 14 -------------- .github/workflows/php-test-min-version.yml | 14 -------------- .github/workflows/php-test-next.yml | 14 -------------- .github/workflows/rector-auto-pr.yaml | 4 ++-- composer.json | 3 ++- docs/swagger/build.sh | 0 12 files changed, 68 insertions(+), 62 deletions(-) create mode 100644 .github/workflows/codeception-develop.yml create mode 100644 .github/workflows/codeception-master.yml create mode 100644 .github/workflows/codeception-min-version.yml create mode 100644 .github/workflows/codeception-next.yml delete mode 100644 .github/workflows/php-test-develop.yml delete mode 100644 .github/workflows/php-test-master.yml delete mode 100644 .github/workflows/php-test-min-version.yml delete mode 100644 .github/workflows/php-test-next.yml mode change 100755 => 100644 docs/swagger/build.sh diff --git a/.github/workflows/codeception-develop.yml b/.github/workflows/codeception-develop.yml new file mode 100644 index 00000000..169c6302 --- /dev/null +++ b/.github/workflows/codeception-develop.yml @@ -0,0 +1,15 @@ +name: Codeception Tests - develop + +on: + push: + workflow_dispatch: + schedule: + - cron: "0 2 * * 1" + + +jobs: + tests: + uses: humhub/module-coding-standards/.github/workflows/codeception-develop.yml@main + with: + module-id: polls + use-rest-module: true diff --git a/.github/workflows/codeception-master.yml b/.github/workflows/codeception-master.yml new file mode 100644 index 00000000..ab31bcdb --- /dev/null +++ b/.github/workflows/codeception-master.yml @@ -0,0 +1,14 @@ +name: Codeception Tests - master + +on: + push: + workflow_dispatch: + schedule: + - cron: "0 1 * * 1" + +jobs: + tests: + uses: humhub/module-coding-standards/.github/workflows/codeception-master.yml@main + with: + module-id: polls + use-rest-module: true diff --git a/.github/workflows/codeception-min-version.yml b/.github/workflows/codeception-min-version.yml new file mode 100644 index 00000000..efb2aa71 --- /dev/null +++ b/.github/workflows/codeception-min-version.yml @@ -0,0 +1,15 @@ +name: Codeception Tests - min version + +on: + push: + workflow_dispatch: + schedule: + - cron: "0 4 * * 1" + + +jobs: + tests: + uses: humhub/module-coding-standards/.github/workflows/codeception-min-version.yml@main + with: + module-id: polls + use-rest-module: true diff --git a/.github/workflows/codeception-next.yml b/.github/workflows/codeception-next.yml new file mode 100644 index 00000000..dfa9e112 --- /dev/null +++ b/.github/workflows/codeception-next.yml @@ -0,0 +1,15 @@ +name: Codeception Tests - next + +on: + push: + workflow_dispatch: + schedule: + - cron: "0 3 * * 1" + + +jobs: + tests: + uses: humhub/module-coding-standards/.github/workflows/codeception-next.yml@main + with: + module-id: polls + use-rest-module: true diff --git a/.github/workflows/php-cs-fixer.yml b/.github/workflows/php-cs-fixer.yml index 2144827b..65d13be3 100644 --- a/.github/workflows/php-cs-fixer.yml +++ b/.github/workflows/php-cs-fixer.yml @@ -1,7 +1,9 @@ name: PHP CS Fixer -on: push +on: + push: + workflow_dispatch: jobs: - tests: - uses: humhub/actions/.github/workflows/module-php-cs-fixer.yml@main + fixers: + uses: humhub/module-coding-standards/.github/workflows/php-cs-fixer.yml@main diff --git a/.github/workflows/php-test-develop.yml b/.github/workflows/php-test-develop.yml deleted file mode 100644 index 4f1ce8a8..00000000 --- a/.github/workflows/php-test-develop.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: PHP Codeception Tests - develop - -on: - push: - workflow_dispatch: - schedule: - - cron: "0 0 * * 0" - -jobs: - tests: - uses: humhub/actions/.github/workflows/module-tests-develop.yml@main - with: - module-id: polls - use-rest-module: true diff --git a/.github/workflows/php-test-master.yml b/.github/workflows/php-test-master.yml deleted file mode 100644 index 187d7d9c..00000000 --- a/.github/workflows/php-test-master.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: PHP Codeception Tests - master - -on: - push: - workflow_dispatch: - schedule: - - cron: "0 0 * * 0" - -jobs: - tests: - uses: humhub/actions/.github/workflows/module-tests-master.yml@main - with: - module-id: polls - use-rest-module: true diff --git a/.github/workflows/php-test-min-version.yml b/.github/workflows/php-test-min-version.yml deleted file mode 100644 index 6adbe21c..00000000 --- a/.github/workflows/php-test-min-version.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: PHP Codeception Tests - min version - -on: - push: - workflow_dispatch: - schedule: - - cron: "0 0 * * 0" - -jobs: - tests: - uses: humhub/actions/.github/workflows/module-tests-min-version.yml@main - with: - module-id: polls - use-rest-module: true diff --git a/.github/workflows/php-test-next.yml b/.github/workflows/php-test-next.yml deleted file mode 100644 index 0ff6a319..00000000 --- a/.github/workflows/php-test-next.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: PHP Codeception Tests - next - -on: - push: - workflow_dispatch: - schedule: - - cron: "0 0 * * 0" - -jobs: - tests: - uses: humhub/actions/.github/workflows/module-tests-next.yml@main - with: - module-id: polls - use-rest-module: true diff --git a/.github/workflows/rector-auto-pr.yaml b/.github/workflows/rector-auto-pr.yaml index c2a54bb4..9b39a04f 100644 --- a/.github/workflows/rector-auto-pr.yaml +++ b/.github/workflows/rector-auto-pr.yaml @@ -2,9 +2,9 @@ name: Rector on: schedule: - - cron: "0 3 * * 1" + - cron: "0 5 * * 5" workflow_dispatch: jobs: rector: - uses: humhub/module-coding-standards/.github/workflows/rector-auto-pr.yaml@main \ No newline at end of file + uses: humhub/module-coding-standards/.github/workflows/rector-auto-pr.yaml@main diff --git a/composer.json b/composer.json index 34880442..f694aa05 100644 --- a/composer.json +++ b/composer.json @@ -16,6 +16,7 @@ "humhub/module-coding-standards": "dev-main" }, "scripts": { - "rector": "vendor/bin/rector process --config=vendor/humhub/module-coding-standards/rector.php" + "rector": "vendor/bin/rector process --config=vendor/humhub/module-coding-standards/rector.php", + "fixer": "vendor/bin/php-cs-fixer fix --config=vendor/humhub/module-coding-standards/php-cs-fixer.php" } } \ No newline at end of file diff --git a/docs/swagger/build.sh b/docs/swagger/build.sh old mode 100755 new mode 100644 From 45539e34df5604f9c06ae37000936972dd8cbd2d Mon Sep 17 00:00:00 2001 From: gevorgmansuryan Date: Tue, 21 Oct 2025 19:43:03 +0400 Subject: [PATCH 2/2] Implement module-coding-standards --- docs/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index ad3c1d35..8abb6ea8 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -4,6 +4,7 @@ Changelog 1.4.0 (Unreleased) ---------------------- - Enh #148: Migration to Bootstrap 5 for HumHub 1.18 +- Enh #159: Implemented `module-coding-standards` 1.3.11 (Unreleased) ---------------------