From f710b6d246af9c4a12ee55f868c82d99e53df5a2 Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 18 Feb 2025 17:56:42 +0000 Subject: [PATCH 1/2] Bump dependencies for Laravel 12 --- composer.json | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 3eb7a0e..e624eca 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,12 @@ { "name": "kris/laravel-form-builder", "description": "Laravel form builder - symfony like", - "keywords": ["laravel", "form", "builder", "symfony"], + "keywords": [ + "laravel", + "form", + "builder", + "symfony" + ], "license": "MIT", "authors": [ { @@ -12,12 +17,12 @@ "require": { "php": "^8.0", "rdx/laravelcollective-html": "^6", - "illuminate/database": "^10 || ^11", - "illuminate/validation": "^10 || ^11" + "illuminate/database": "^10 || ^11 || ^12.0", + "illuminate/validation": "^10 || ^11 || ^12.0" }, "require-dev": { - "orchestra/testbench": "^8 || ^9", - "phpunit/phpunit": "^10.0" + "orchestra/testbench": "^8 || ^9 || ^10.0", + "phpunit/phpunit": "^10.0 || ^11.5.3" }, "extra": { "branch-alias": { From 265d9e827b73dc3a16525f6416da8a1c37468a75 Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 18 Feb 2025 17:56:42 +0000 Subject: [PATCH 2/2] Update GitHub Actions for Laravel 12 --- .github/workflows/test.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ea8acd9..fa539e0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: "Run unit tests" +name: Run unit tests on: - push @@ -9,17 +9,21 @@ env: jobs: test: - name: "Lara ${{ matrix.laravel }} PHP ${{ matrix.php }} Unit ${{ matrix.phpunit }}" + name: Lara ${{ matrix.laravel }} PHP ${{ matrix.php }} Unit ${{ matrix.phpunit }} + runs-on: ubuntu-latest + strategy: - max-parallel: 6 # 12 + max-parallel: 6 fail-fast: false matrix: - laravel: [10, 11] + laravel: [10, 11, '12'] php: ['8.2', '8.3', '8.4'] - phpunit: [10] + phpunit: ['8.2', '8.3', '8.4', 10] exclude: - - {laravel: 10, php: '8.4'} + - laravel: 10 + php: '8.4' + steps: - name: Checkout repository uses: actions/checkout@v3 @@ -52,9 +56,3 @@ jobs: - name: Run unit tests run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover - - # - name: Upload to Scrutinizer - # continue-on-error: true - # run: | - # composer global require scrutinizer/ocular - # ~/.composer/vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover