Skip to content

Commit

Permalink
phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
miftahurrahmi committed Aug 29, 2024
1 parent 18ac635 commit febb56a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 17 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,39 +26,43 @@ jobs:
name: "PHP ${{ matrix.php }} / Laravel ${{ matrix.laravel }}"

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3

# Configure PHP
- name: Select PHP version
uses: shivammathur/setup-php@master
- name: Set up PHP with required extensions
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
php-version: ${{ matrix.php }}
extensions: mbstring, pdo_sqlite, fileinfo, gd, php_pgsql
coverage: none

# Install legacy factories for Laravel 8/9
- name: Install legacy factories for Laravel
- name: Install Laravel Project
run: composer create-project laravel/laravel:^${{matrix.laravel-require}} laravel

# Display installed laravel version
- name: Show laravel version
run: cd laravel &&
composer show laravel/framework
- name: Show Laravel Version
run: cd laravel && composer show laravel/framework

# Install dependencies with composer
- name: Install dependencies with composer
run: cd laravel && composer install --prefer-dist --no-interaction --with-all-dependencies

# Laravel require badaso core
- name: Laravel file configuration
run: git branch &&
run: |
git branch &&
cd laravel &&
composer require badaso/core:dev-${GITHUB_HEAD_REF} --ignore-platform-reqs -W
composer require badaso/core:dev-${GITHUB_HEAD_REF} --ignore-platform-reqs --with-all-dependencies
# Laravel setup
- name: Laravel setup
run: cd laravel &&
php artisan badaso:setup --force
run: cd laravel && php artisan badaso:setup --force

# Check installed dependencies (for debugging)
- name: Check installed dependencies
run: cd laravel && composer show

# Badaso Core Test PHPStan
- name: Badaso core test PHPStan
run: cd laravel &&
./vendor/bin/phpstan analyse -c vendor/badaso/core/phpstan.neon.dist


run: cd laravel && ./vendor/bin/phpstan analyse -c vendor/badaso/core/phpstan.neon.dist
21 changes: 20 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,26 @@
"arcanedev/log-viewer": "8.1.0",
"larapack/doctrine-support": "0.1.9",
"darkaonline/l5-swagger": "8.1",
"zircote/swagger-php": "3.*"
"symfony/var-exporter": "5.4.21",
"phpstan/phpstan": "1.10.15",
"spatie/laravel-backup": "7.8",
"unisharp/laravel-filemanager": "2.6",
"spatie/laravel-activitylog": "4.7.1",
"php-open-source-saver/jwt-auth": "2.1.0",
"google/apiclient": "2.13.2",
"spatie/flysystem-dropbox": "1.2.3",
"masbug/flysystem-google-drive-ext": "1.3.2",
"laravel/octane": "1.5.5",
"laravel/sanctum": "2.15.1",
"laravel/tinker": "2.8.1",
"laravel/ui": "3.4.6",
"webpatser/laravel-uuid": "4.0.1",
"predis/predis": "2.1.2",
"guzzlehttp/guzzle": "7.5.1",
"zircote/swagger-php": "3.*",
"doctrine/dbal": "2.13.9",
"league/flysystem-aws-s3-v3": "1.0.29",
"league/flysystem": "1.1.10"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
Expand Down

0 comments on commit febb56a

Please sign in to comment.