diff --git a/.github/workflows/marketplace-upload.yml b/.github/workflows/marketplace-upload.yml new file mode 100644 index 0000000..d539401 --- /dev/null +++ b/.github/workflows/marketplace-upload.yml @@ -0,0 +1,13 @@ +on: + push: + tags: + - 'v*' + +name: Upload to HumHub Marketplace + +jobs: + build: + uses: humhub/module-coding-standards/.github/workflows/marketplace-upload.yml@main + secrets: + MARKETPLACE_API_KEY: ${{ secrets.MARKETPLACE_API_KEY }} + MARKETPLACE_API_KEY_INT: ${{ secrets.MARKETPLACE_API_KEY_INT }} \ No newline at end of file diff --git a/.github/workflows/php-cs-fixer.yml b/.github/workflows/php-cs-fixer.yml index 2d37e13..65d13be 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: fixers: - uses: humhub/actions/.github/workflows/module-php-cs-fixer.yml@main + uses: humhub/module-coding-standards/.github/workflows/php-cs-fixer.yml@main diff --git a/.github/workflows/rector-auto-pr.yaml.yml b/.github/workflows/rector-auto-pr.yaml.yml new file mode 100644 index 0000000..9b39a04 --- /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/.gitignore b/.gitignore index c945949..f002f83 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ nbproject vendor/* .gitmodules /composer.lock - +/vendor diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..d6b15ed --- /dev/null +++ b/composer.json @@ -0,0 +1,22 @@ +{ + "name": "humhub/devtools", + "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" + } +}