From a0e206746760a5c8ebb9e498e0aa29e1b0295164 Mon Sep 17 00:00:00 2001 From: Tim Geisendoerfer Date: Sun, 25 Feb 2024 12:18:07 +0100 Subject: [PATCH 1/2] wip --- .github/workflows/run-tests.yml | 27 +++++++++++++++------------ composer.json | 6 +++--- tests/ExampleTest.php | 5 ----- 3 files changed, 18 insertions(+), 20 deletions(-) delete mode 100644 tests/ExampleTest.php diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 1dea70f..73f7f23 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -10,22 +10,28 @@ jobs: test: runs-on: ${{ matrix.os }} strategy: - fail-fast: false + fail-fast: true matrix: os: [ubuntu-latest] - php: [8.2, 8.1] - laravel: [10.*] + php: [8.3, 8.2, 8.1] + laravel: ["^11.0", "^10.0", "^9.38"] stability: [prefer-lowest, prefer-stable] include: - - laravel: 10.* + - laravel: "^11.0" + testbench: 9.* + - laravel: "^10.0" testbench: 8.* - carbon: ^2.63 + - laravel: "^9.38" + testbench: 7.* + exclude: + - laravel: "^11.0" + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -41,11 +47,8 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update - composer update --${{ matrix.stability }} --prefer-dist --no-interaction - - - name: List Installed Dependencies - run: composer show -D + composer require 'illuminate/contracts=${{ matrix.laravel }}.0' --no-update + composer update --prefer-dist --no-interaction --no-progress --${{ matrix.stability }} - name: Execute tests - run: vendor/bin/pest --ci + run: vendor/bin/pest diff --git a/composer.json b/composer.json index c54db75..438b10b 100644 --- a/composer.json +++ b/composer.json @@ -18,14 +18,14 @@ "require": { "php": "^8.1", "spatie/laravel-package-tools": "^1.14.0", - "illuminate/contracts": "^10.0", + "illuminate/contracts": "^10.0|^11.0", "filament/forms": "^3.0" }, "require-dev": { "laravel/pint": "^1.0", - "nunomaduro/collision": "^7.8", + "nunomaduro/collision": "^7.8|^8.0", "nunomaduro/larastan": "^2.0.1", - "orchestra/testbench": "^8.17", + "orchestra/testbench": "^8.17|^9.0", "pestphp/pest": "^2.28", "pestphp/pest-plugin-arch": "^2.0", "pestphp/pest-plugin-laravel": "^2.0", diff --git a/tests/ExampleTest.php b/tests/ExampleTest.php deleted file mode 100644 index 5d36321..0000000 --- a/tests/ExampleTest.php +++ /dev/null @@ -1,5 +0,0 @@ -toBeTrue(); -}); From ce2842483ec52284f8a1d37a6c65d696adabcf3c Mon Sep 17 00:00:00 2001 From: Tim Geisendoerfer Date: Sun, 25 Feb 2024 12:19:41 +0100 Subject: [PATCH 2/2] wip --- .github/workflows/run-tests.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 73f7f23..9fa4126 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -14,15 +14,13 @@ jobs: matrix: os: [ubuntu-latest] php: [8.3, 8.2, 8.1] - laravel: ["^11.0", "^10.0", "^9.38"] + laravel: ["^11.0", "^10.0"] stability: [prefer-lowest, prefer-stable] include: - laravel: "^11.0" testbench: 9.* - laravel: "^10.0" testbench: 8.* - - laravel: "^9.38" - testbench: 7.* exclude: - laravel: "^11.0" php: 8.1 @@ -51,4 +49,4 @@ jobs: composer update --prefer-dist --no-interaction --no-progress --${{ matrix.stability }} - name: Execute tests - run: vendor/bin/pest + run: vendor/bin/pest --ci