diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 39d4a00..bdf2a27 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,27 +14,28 @@ jobs: matrix: php: [7.4, 8.0, 8.1] laravel: [8.*, 9.*] - dependency-version: [prefer-lowest, prefer-stable] - os: [ubuntu-20.04] + stability: [prefer-lowest, prefer-stable] + os: [ubuntu-latest] include: - - laravel: 9.* - testbench: 7.* - testbench-constraint: ^7.0 - laravel: 8.* - testbench: 6.* - laravel-constraint: ^8.18.1 - testbench-constraint: ^6.22.0 - - php: 7.4 - dependency-version: prefer-lowest - additional-deps: '"mockery/mockery:>=1.2.3"' - - php: 8.0 - dependency-version: prefer-lowest - additional-deps: '"mockery/mockery:>=1.3.3"' + framework: ^8.24.0 + - laravel: 9.* + framework: ^9.0 + - os: windows-latest + php: 7.4 + laravel: 8.* + framework: ^8.65.0 + stability: prefer-stable + - os: windows-latest + php: 8.1 + laravel: 9.* + framework: ^9.0 + stability: prefer-stable exclude: - laravel: 9.* php: 7.4 - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ubuntu-latest + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} steps: - name: Checkout code @@ -44,13 +45,13 @@ jobs: 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 + 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-constraint || matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench-constraint || matrix.testbench }}" ${{ matrix.additional-deps }} --no-interaction --no-update - composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest + composer require "laravel/framework:${{ matrix.framework }}" --no-interaction --no-update + composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest - name: Execute tests run: vendor/bin/phpunit