diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml deleted file mode 100644 index f5259d6..0000000 --- a/.github/workflows/laravel.yml +++ /dev/null @@ -1,87 +0,0 @@ -name: laravel - -on: [ push ] - -permissions: read-all - -jobs: - laravel: - runs-on: ubuntu-latest - - strategy: - fail-fast: true - matrix: - php: [ "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3" ] - laravel: [ "6.0", "7.0", "8.0", "9.0", "10.0" ] - exclude: - - laravel: "6.0" - php: "8.1" - - - laravel: "6.0" - php: "8.2" - - - laravel: "6.0" - php: "8.3" - - - laravel: "7.0" - php: "8.1" - - - laravel: "7.0" - php: "8.2" - - - laravel: "7.0" - php: "8.3" - - - laravel: "8.0" - php: "7.2" - - - laravel: "8.0" - php: "8.2" - - - laravel: "8.0" - php: "8.3" - - - laravel: "9.0" - php: "7.2" - - - laravel: "9.0" - php: "7.3" - - - laravel: "9.0" - php: "7.4" - - - laravel: "9.0" - php: "8.3" - - - laravel: "10.0" - php: "7.2" - - - laravel: "10.0" - php: "7.3" - - - laravel: "10.0" - php: "7.4" - - - laravel: "10.0" - php: "8.0" - - name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }} - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv - coverage: none - env: - COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Install dependencies - run: composer require laravel/framework:^${{ matrix.laravel }} - - - name: Execute tests - run: sudo vendor/bin/phpunit diff --git a/.github/workflows/phpunit.yml b/.github/workflows/tests.yml similarity index 59% rename from .github/workflows/phpunit.yml rename to .github/workflows/tests.yml index 46c93bf..b84f6c3 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: "phpunit" +name: Tests on: [ push ] @@ -8,7 +8,13 @@ jobs: laravel: runs-on: ubuntu-latest - name: PHP Unit + strategy: + fail-fast: true + matrix: + php: [ "8.1", "8.2", "8.3" ] + laravel: [ "10.0" ] + + name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }} steps: - name: Checkout code @@ -17,13 +23,14 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: + php-version: ${{ matrix.php }} extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv - coverage: none + coverage: xdebug env: COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Install dependencies - run: composer update + run: composer require laravel/framework:^${{ matrix.laravel }} - name: Execute tests run: sudo vendor/bin/phpunit diff --git a/composer.json b/composer.json index bda9385..3af48b0 100644 --- a/composer.json +++ b/composer.json @@ -15,13 +15,13 @@ } ], "require": { - "php": "^7.2 || ^8.0", - "illuminate/support": ">=6.0 <11.0", - "illuminate/translation": ">=6.0 <11.0" + "php": "^8.1", + "illuminate/support": "^10.0", + "illuminate/translation": "^10.0" }, "require-dev": { - "orchestra/testbench": ">=4.0 <9.0", - "phpunit/phpunit": "^8.5 || ^9.0" + "orchestra/testbench": "^8.0", + "phpunit/phpunit": "^10.0" }, "minimum-stability": "stable", "autoload": {