diff --git a/RECIPES.md b/RECIPES.md index f1cbe819..7259e194 100644 --- a/RECIPES.md +++ b/RECIPES.md @@ -207,6 +207,7 @@ Additional recipes can be found on the [Main Recipes Repository](https://github. | [exercise/htmlpurifier-bundle](https://packagist.org/packages/exercise/htmlpurifier-bundle) | [3.0](exercise/htmlpurifier-bundle/3.0) | | [expertcoder/swiftmailer-send-grid-bundle](https://packagist.org/packages/expertcoder/swiftmailer-send-grid-bundle) | [2.0](expertcoder/swiftmailer-send-grid-bundle/2.0) | | [facile-it/mongodb-bundle](https://packagist.org/packages/facile-it/mongodb-bundle) | [0.6](facile-it/mongodb-bundle/0.6) | +| [fastfony/quality-pack](https://packagist.org/packages/fastfony/quality-pack) | [1.0](fastfony/quality-pack/1.0) | | [fd6130/exabytes-sms-bundle](https://packagist.org/packages/fd6130/exabytes-sms-bundle) | [1.0](fd6130/exabytes-sms-bundle/1.0) | | [fdekker/log-viewer-bundle](https://packagist.org/packages/fdekker/log-viewer-bundle) | [1.0](fdekker/log-viewer-bundle/1.0) | | [felds/quick-mailer-bundle](https://packagist.org/packages/felds/quick-mailer-bundle) | [5.0](felds/quick-mailer-bundle/5.0) | diff --git a/archived/fastfony.quality-pack/20bd3e46539bd63f63e7ffc482412e319c46646f.json b/archived/fastfony.quality-pack/20bd3e46539bd63f63e7ffc482412e319c46646f.json new file mode 100644 index 00000000..db6389f9 --- /dev/null +++ b/archived/fastfony.quality-pack/20bd3e46539bd63f63e7ffc482412e319c46646f.json @@ -0,0 +1,96 @@ +{ + "manifests": { + "fastfony/quality-pack": { + "manifest": { + "copy-from-recipe": { + ".twig-cs-fixer.dist.php": ".twig-cs-fixer.dist.php", + ".github/": ".github/" + }, + "makefile": [ + ".PHONY: quality", + "", + "quality:", + "\tcomposer audit", + "\tvendor/bin/php-cs-fixer fix", + "\tvendor/bin/twig-cs-fixer lint --fix templates/", + "\tvendor/bin/phpstan analyse src tests" + ] + }, + "files": { + ".github/workflows/quality.yaml": { + "contents": [ + "name: Quality Checks", + "", + "on:", + " push:", + " branches:", + " - '**'", + " pull_request:", + " branches:", + " - '**'", + "", + "jobs:", + " security-check:", + " name: Security Check", + " runs-on: ubuntu-latest", + " steps:", + " - name: Checkout code", + " uses: actions/checkout@v4", + "", + " - name: Setup PHP", + " uses: shivammathur/setup-php@v2", + " with:", + " php-version: '8.2'", + " coverage: none", + "", + " - name: Install dependencies", + " run: composer install --prefer-dist --no-progress", + "", + " - name: Run Composer Security Audit", + " run: composer audit", + "", + " phpstan:", + " name: PHPStan Analysis", + " runs-on: ubuntu-latest", + " steps:", + " - name: Checkout code", + " uses: actions/checkout@v4", + "", + " - name: Setup PHP", + " uses: shivammathur/setup-php@v2", + " with:", + " php-version: '8.2'", + " coverage: none", + "", + " - name: Install dependencies", + " run: composer install --prefer-dist --no-progress", + "", + " - name: Run PHPStan", + " run: vendor/bin/phpstan analyse src tests --no-progress --error-format=github", + "" + ], + "executable": false + }, + ".twig-cs-fixer.dist.php": { + "contents": [ + "addStandard(new \\TwigCsFixer\\Standard\\TwigCsFixer());", + "", + "$config = new Config();", + "$config->setRuleset($ruleset);", + "", + "return $config;", + "" + ], + "executable": false + } + }, + "ref": "20bd3e46539bd63f63e7ffc482412e319c46646f" + } + } +} diff --git a/fastfony.quality-pack.1.0.json b/fastfony.quality-pack.1.0.json new file mode 100644 index 00000000..db6389f9 --- /dev/null +++ b/fastfony.quality-pack.1.0.json @@ -0,0 +1,96 @@ +{ + "manifests": { + "fastfony/quality-pack": { + "manifest": { + "copy-from-recipe": { + ".twig-cs-fixer.dist.php": ".twig-cs-fixer.dist.php", + ".github/": ".github/" + }, + "makefile": [ + ".PHONY: quality", + "", + "quality:", + "\tcomposer audit", + "\tvendor/bin/php-cs-fixer fix", + "\tvendor/bin/twig-cs-fixer lint --fix templates/", + "\tvendor/bin/phpstan analyse src tests" + ] + }, + "files": { + ".github/workflows/quality.yaml": { + "contents": [ + "name: Quality Checks", + "", + "on:", + " push:", + " branches:", + " - '**'", + " pull_request:", + " branches:", + " - '**'", + "", + "jobs:", + " security-check:", + " name: Security Check", + " runs-on: ubuntu-latest", + " steps:", + " - name: Checkout code", + " uses: actions/checkout@v4", + "", + " - name: Setup PHP", + " uses: shivammathur/setup-php@v2", + " with:", + " php-version: '8.2'", + " coverage: none", + "", + " - name: Install dependencies", + " run: composer install --prefer-dist --no-progress", + "", + " - name: Run Composer Security Audit", + " run: composer audit", + "", + " phpstan:", + " name: PHPStan Analysis", + " runs-on: ubuntu-latest", + " steps:", + " - name: Checkout code", + " uses: actions/checkout@v4", + "", + " - name: Setup PHP", + " uses: shivammathur/setup-php@v2", + " with:", + " php-version: '8.2'", + " coverage: none", + "", + " - name: Install dependencies", + " run: composer install --prefer-dist --no-progress", + "", + " - name: Run PHPStan", + " run: vendor/bin/phpstan analyse src tests --no-progress --error-format=github", + "" + ], + "executable": false + }, + ".twig-cs-fixer.dist.php": { + "contents": [ + "addStandard(new \\TwigCsFixer\\Standard\\TwigCsFixer());", + "", + "$config = new Config();", + "$config->setRuleset($ruleset);", + "", + "return $config;", + "" + ], + "executable": false + } + }, + "ref": "20bd3e46539bd63f63e7ffc482412e319c46646f" + } + } +} diff --git a/index.json b/index.json index af660249..b24e164b 100644 --- a/index.json +++ b/index.json @@ -651,6 +651,9 @@ "facile-it/mongodb-bundle": [ "0.6" ], + "fastfony/quality-pack": [ + "1.0" + ], "fd6130/exabytes-sms-bundle": [ "1.0" ],