From 282a1a8972b8459f97367fde0c6c88330b8987e0 Mon Sep 17 00:00:00 2001 From: Miftahurrahmi Date: Tue, 3 Sep 2024 10:46:01 +0700 Subject: [PATCH] update package version --- .github/workflows/phpstan.yml | 32 ++++++++++++++------------------ .github/workflows/phpunit.yml | 3 ++- composer.json | 2 +- 3 files changed, 17 insertions(+), 20 deletions(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index e6a8c27d..40215792 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -26,43 +26,39 @@ jobs: name: "PHP ${{ matrix.php }} / Laravel ${{ matrix.laravel }}" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@master # Configure PHP - - name: Set up PHP with required extensions - uses: shivammathur/setup-php@v2 + - name: Select PHP version + uses: shivammathur/setup-php@master 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 Laravel Project + - name: Install legacy factories for Laravel 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 - - # Install dependencies with composer - - name: Install dependencies with composer - run: cd laravel && composer install --prefer-dist --no-interaction + - name: Show laravel version + run: cd laravel && + composer show laravel/framework # Laravel require badaso core - name: Laravel file configuration run: | git branch && cd laravel && - composer require badaso/core:dev-${GITHUB_HEAD_REF} --ignore-platform-reqs --with-all-dependencies + composer require badaso/core:dev-${GITHUB_HEAD_REF} -W && + composer update --no-interaction -W # Laravel setup - name: Laravel setup - run: cd laravel && php artisan badaso:setup --force - - # Check installed dependencies (for debugging) - - name: Check installed dependencies - run: cd laravel && composer show + run: cd laravel && + php artisan badaso:setup --force # 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 diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 9e4cf657..37c34ab7 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -84,7 +84,8 @@ jobs: - name: Laravel file configuration 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} -W && + composer update --no-interaction -W # Mysql | Laravel setup - name: Mysql | Laravel setup diff --git a/composer.json b/composer.json index 3dde76f4..17371f62 100644 --- a/composer.json +++ b/composer.json @@ -44,7 +44,7 @@ "webpatser/laravel-uuid": "4.0.1", "predis/predis": "2.1.2", "guzzlehttp/guzzle": "7.5.1", - "zircote/swagger-php": "3.*", + "zircote/swagger-php": "3.3.7", "doctrine/dbal": "2.13.9", "league/flysystem-aws-s3-v3": "1.0.29", "league/flysystem": "1.1.10"