diff --git a/.github/workflows/code_analysis.yaml b/.github/workflows/code_analysis.yaml index 67c27a6..42158ff 100644 --- a/.github/workflows/code_analysis.yaml +++ b/.github/workflows/code_analysis.yaml @@ -13,39 +13,42 @@ jobs: matrix: actions: - - name: 'ECS' - run: 'composer fix-cs --ansi' + name: 'PHPStan' + run: composer phpstan --ansi - - name: 'PHPStan' - run: 'composer phpstan --ansi' + name: 'Composer Validate' + run: composer validate --ansi + + - + name: 'Coding Standard' + run: composer fix-cs --ansi - - name: 'Unit Tests' - run: | - cp .env.local .env + name: 'Tests' + run: vendor/bin/phpunit - # fixes missing vite manifest error - yarn install - yarn build + - + name: 'Check Commented Code' + run: vendor/bin/easy-ci check-commented-code src tests --ansi - php artisan migrate --force + - + name: 'Check Active Classes' + run: vendor/bin/class-leak check src --ansi - vendor/bin/phpunit + - + name: 'Detect composer dependency issues' + run: vendor/bin/composer-dependency-analyser name: ${{ matrix.actions.name }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - # see https://github.com/shivammathur/setup-php - uses: shivammathur/setup-php@v2 with: php-version: 8.2 - # needed by phpunit - extensions: mbstring - # disable xdebug coverage: none # composer install cache - https://github.com/ramsey/composer-install