From 2a40cbeb970afb967852040b6c2b5c334a62d26f Mon Sep 17 00:00:00 2001 From: Shift Date: Mon, 17 Feb 2025 00:27:17 +0000 Subject: [PATCH 1/2] Bump dependencies for Laravel 12 --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 6444ae8..f085bf4 100644 --- a/composer.json +++ b/composer.json @@ -23,12 +23,12 @@ "require": { "php": "^8.1", "codezero/browser-locale": "^3.0", - "illuminate/support": "^10.0|^11.0" + "illuminate/support": "^10.0|^11.0|^12.0" }, "require-dev": { "mockery/mockery": "^1.3.3", - "orchestra/testbench": "^8.0|^9.0", - "phpunit/phpunit": "^10.5" + "orchestra/testbench": "^8.0|^9.0|^10.0", + "phpunit/phpunit": "^10.5|^11.5.3" }, "scripts": { "test": "phpunit" From 318f83ecae6ae793ff93ffea1c5774b63192fa6f Mon Sep 17 00:00:00 2001 From: Shift Date: Mon, 17 Feb 2025 00:27:17 +0000 Subject: [PATCH 2/2] Update GitHub Actions for Laravel 12 --- .github/workflows/run-tests.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 4554c07..d743eac 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,24 +1,31 @@ name: Tests -on: [ push, pull_request ] +on: + - push + - pull_request jobs: test: runs-on: ubuntu-latest + strategy: fail-fast: true matrix: - php: [ 8.1, 8.2, 8.3 ] - laravel: [ 10.*, 11.* ] - dependency-version: [ prefer-stable ] + php: [8.1, 8.2, 8.3] + laravel: ['10.*', '11.*', '12.*'] + dependency-version: [prefer-stable] exclude: - laravel: 11.* php: 8.1 + - laravel: 12.* + php: 8.1 include: - laravel: 10.* testbench: 8.* - laravel: 11.* testbench: 9.* + - laravel: 12.* + testbench: 10.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} @@ -45,9 +52,9 @@ jobs: - name: Execute tests run: vendor/bin/phpunit --coverage-clover=coverage.xml - - if: github.event_name == 'push' + - if: "github.event_name == 'push'" name: Run Codacy Coverage Reporter uses: codacy/codacy-coverage-reporter-action@master with: - project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} - coverage-reports: coverage.xml + project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} + coverage-reports: coverage.xml