diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 1650609..ae3af2a 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -8,24 +8,22 @@ jobs: strategy: fail-fast: true matrix: - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest] php: ["8.0", "8.1"] - laravel: ["^8.67", "^9.0"] + laravel: ["^8.67", "^9.0", "^10.0"] dependency-version: [prefer-lowest, prefer-stable] include: - laravel: "^8.67" testbench: "^6.23" - testbench-core: "^6.27" - laravel: "^9.0" - testbench: "7.0" - testbench-core: "7.0" + testbench: "^7.0" + - laravel: "^10.0" + testbench: "^8.0" exclude: - - php: "8.0" - laravel: "^8.67" - dependency-version: prefer-lowest - - php: "8.1" - laravel: "^8.67" + - laravel: "^8.67" dependency-version: prefer-lowest + - php: "8.0" + laravel: "^10.0" name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} @@ -47,7 +45,7 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "orchestra/testbench-core:${{ matrix.testbench-core }}" --no-interaction --no-update + 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 diff --git a/README.md b/README.md index d09619d..85391a7 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # ⚡️ Laravel Actions [![Latest Version on Packagist](https://img.shields.io/packagist/v/lorisleiva/laravel-actions.svg)](https://packagist.org/packages/lorisleiva/laravel-actions) -[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/lorisleiva/laravel-actions/Tests?label=tests)](https://github.com/lorisleiva/laravel-actions/actions?query=workflow%3ATests+branch%3Amain) +[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/lorisleiva/laravel-actions/run-tests.yml?branch=main)](https://github.com/lorisleiva/laravel-actions/actions?query=workflow%3ATests+branch%3Amain) [![Total Downloads](https://img.shields.io/packagist/dt/lorisleiva/laravel-actions.svg)](https://packagist.org/packages/lorisleiva/laravel-actions) ![hero](https://user-images.githubusercontent.com/3642397/104024620-4e572400-51bb-11eb-97fc-c2692b16eaa7.png) diff --git a/composer.json b/composer.json index 6aa6079..04c0ffc 100644 --- a/composer.json +++ b/composer.json @@ -21,13 +21,12 @@ } ], "require": { - "php": "^8.0", - "illuminate/contracts": "^8.15 || 9.0 - 9.34 || ^9.36", - "lorisleiva/lody": "^0.3.0" + "php": "^8.0|^8.1", + "illuminate/contracts": "^8.15 || 9.0 - 9.34 || ^9.36 || ^10.0", + "lorisleiva/lody": "^0.4.0" }, "require-dev": { - "orchestra/testbench": "7.0.0", - "orchestra/testbench-core": "7.0.0", + "orchestra/testbench": "^8.0", "pestphp/pest": "^1.2", "phpunit/phpunit": "^9.5" }, diff --git a/tests/AsJobSerializedTest.php b/tests/AsJobSerializedTest.php index 87cb2b8..c9daf39 100644 --- a/tests/AsJobSerializedTest.php +++ b/tests/AsJobSerializedTest.php @@ -60,7 +60,7 @@ public function handle() ->and($firstParameter['class'])->toBe(get_class($model)) ->and($firstParameter['id'])->toBe($model->id) ->and($firstParameter['relations'])->toBe([]) - ->and($firstParameter['connection'])->toBe("sqlite"); + ->and($firstParameter['connection'])->toBeIn(["testing", "sqlite"]); }); it('unserialises Eloquent models within the parameters', function () { @@ -95,7 +95,7 @@ public function handle() ->and($firstParameter['class'])->toBe(get_class($modelA)) ->and($firstParameter['id'])->toBe($collection->pluck('id')->toArray()) ->and($firstParameter['relations'])->toBe([]) - ->and($firstParameter['connection'])->toBe("sqlite"); + ->and($firstParameter['connection'])->toBeIn(["testing", "sqlite"]); }); it('unserialises Eloquent collections within the parameters', function () {