diff --git a/.github/workflows/codeception-develop.yml b/.github/workflows/codeception-develop.yml new file mode 100644 index 00000000..2adef334 --- /dev/null +++ b/.github/workflows/codeception-develop.yml @@ -0,0 +1,14 @@ +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: rest \ No newline at end of file diff --git a/.github/workflows/codeception-master.yml b/.github/workflows/codeception-master.yml new file mode 100644 index 00000000..e23ec981 --- /dev/null +++ b/.github/workflows/codeception-master.yml @@ -0,0 +1,13 @@ +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: rest diff --git a/.github/workflows/codeception-min-version.yml b/.github/workflows/codeception-min-version.yml new file mode 100644 index 00000000..fc9482a6 --- /dev/null +++ b/.github/workflows/codeception-min-version.yml @@ -0,0 +1,14 @@ +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: rest diff --git a/.github/workflows/codeception-next.yml b/.github/workflows/codeception-next.yml new file mode 100644 index 00000000..3b1ef51b --- /dev/null +++ b/.github/workflows/codeception-next.yml @@ -0,0 +1,14 @@ +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: rest 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 8283318a..00000000 --- a/.github/workflows/php-test-develop.yml +++ /dev/null @@ -1,13 +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: rest \ No newline at end of file diff --git a/.github/workflows/php-test-master.yml b/.github/workflows/php-test-master.yml deleted file mode 100644 index 93f19152..00000000 --- a/.github/workflows/php-test-master.yml +++ /dev/null @@ -1,13 +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: rest diff --git a/.github/workflows/php-test-min-version.yml b/.github/workflows/php-test-min-version.yml deleted file mode 100644 index aa2fa4e3..00000000 --- a/.github/workflows/php-test-min-version.yml +++ /dev/null @@ -1,13 +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: rest diff --git a/.github/workflows/php-test-next.yml b/.github/workflows/php-test-next.yml deleted file mode 100644 index f8d462f8..00000000 --- a/.github/workflows/php-test-next.yml +++ /dev/null @@ -1,13 +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: rest diff --git a/.github/workflows/rector-auto-pr.yaml.yml b/.github/workflows/rector-auto-pr.yaml.yml new file mode 100644 index 00000000..9b39a04f --- /dev/null +++ b/.github/workflows/rector-auto-pr.yaml.yml @@ -0,0 +1,10 @@ +name: Rector + +on: + schedule: + - cron: "0 5 * * 5" + workflow_dispatch: + +jobs: + rector: + uses: humhub/module-coding-standards/.github/workflows/rector-auto-pr.yaml@main diff --git a/composer.json b/composer.json new file mode 100644 index 00000000..9d58d280 --- /dev/null +++ b/composer.json @@ -0,0 +1,22 @@ +{ + "name": "humhub/rest", + "type": "humhub-module", + "config": { + "platform": { + "php": "8.2" + } + }, + "repositories": { + "humhub-module-coding-standards": { + "type": "vcs", + "url": "https://github.com/humhub/module-coding-standards.git" + } + }, + "require-dev": { + "humhub/module-coding-standards": "dev-main" + }, + "scripts": { + "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" + } +} diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 173c47af..6e479c25 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -4,6 +4,7 @@ Changelog 0.11.1 (Unreleased) ---------------------- - Enh #219: Improved Module Test GitHub Actions +- Enh #220: Implement module-coding-standards 0.11.0 (July 26, 2025) ----------------------