diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 62adfbe..f89d4fc 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,44 +1,53 @@ name: run-tests -on: [push, pull_request] +on: + - push + - pull_request jobs: - test: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - php: [8.2, 8.1, 8.0] - laravel: [9.*, 8.*, 10.*] - dependency-version: [prefer-stable] - include: - - laravel: 10.* - testbench: 8.* - - laravel: 9.* - testbench: 7.* - - laravel: 8.* - testbench: 6.* - exclude: - - laravel: 10.* - php: 8.0 - - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo - coverage: none - - - name: Install dependencies - run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update - composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction - - - name: Execute tests - run: vendor/bin/phpunit + test: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + php: [8.2, 8.1, 8.0] + laravel: ['8.*', '9.*', '10.*', '11.*'] + dependency-version: [prefer-stable] + include: + - laravel: 10.* + testbench: 8.* + - laravel: 9.* + testbench: 7.* + - laravel: 8.* + testbench: 6.* + - laravel: 11.* + testbench: 9.* + exclude: + - laravel: 10.* + php: 8.0 + - laravel: 11.* + php: 8.1 + - laravel: 11.* + php: 8.0 + + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo + coverage: none + + - name: Install dependencies + run: | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction + + - name: Execute tests + run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 2839c4c..4f841f2 100644 --- a/composer.json +++ b/composer.json @@ -19,17 +19,17 @@ "require": { "php": "^8.0", "ext-json": "*", - "illuminate/contracts": "^8.71|^9.0|^10.0", - "illuminate/filesystem": "^8.71|^9.0|^10.0", - "illuminate/support": "^8.71|^9.0|^10.0", + "illuminate/contracts": "^8.71|^9.0|^10.0|^11.0", + "illuminate/filesystem": "^8.71|^9.0|^10.0|^11.0", + "illuminate/support": "^8.71|^9.0|^10.0|^11.0", "league/commonmark": "^1.0|^2.0", "spatie/yaml-front-matter": "^2.0", "symfony/yaml": "^4.0|^5.0|^6.0|^7.0" }, "require-dev": { "league/flysystem": "^1.0.8|^3.0", - "orchestra/testbench": "^6.23|^7.0|^8.0", - "phpunit/phpunit": "^9.4" + "orchestra/testbench": "^6.23|^7.0|^8.0|^9.0", + "phpunit/phpunit": "^9.4|^10.5" }, "config": { "sort-packages": true