Skip to content

Instantly share code, notes, and snippets.

@Queopius
Last active March 9, 2023 09:35
Show Gist options
  • Save Queopius/61db806a96cc4bd764380d46dfc6d519 to your computer and use it in GitHub Desktop.
Save Queopius/61db806a96cc4bd764380d46dfc6d519 to your computer and use it in GitHub Desktop.
Pipeline de PHPInsights - Analizador del estilo y calidad de tu código
name: phpinsights
on:
push:
branches: [ "pre", "development" ]
pull_request:
branches: [ "prod"]
jobs:
phpinsights:
name: "Instant PHP quality checks from your console with phpinsights"
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- uses: actions/checkout@v3
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.ci', '.env');"
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Generate key
run: php artisan key:generate
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Run phpinsights
run: ./vendor/bin/phpinsights --no-interaction --min-quality=60 --min-complexity=89 --min-architecture=70 --min-style=70 --disable-security-check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment