diff --git a/.github/workflows/marketplace-upload.yml b/.github/workflows/marketplace-upload.yml index c0c3a44..d539401 100644 --- a/.github/workflows/marketplace-upload.yml +++ b/.github/workflows/marketplace-upload.yml @@ -7,5 +7,7 @@ name: Upload to HumHub Marketplace jobs: build: - uses: humhub-contrib/actions/.github/workflows/module-marketplace-upload.yml@main - secrets: inherit + 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 be9b715..190882b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ .htaccess nbproject .idea -.gitmodules \ No newline at end of file +.gitmodules +/composer.lock +/vendor \ No newline at end of file diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..93b0579 --- /dev/null +++ b/composer.json @@ -0,0 +1,22 @@ +{ + "name": "humhub/auth-github", + "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" + } +}