diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ef7250f..f1f09c4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,9 +2,13 @@ name: Tests on: push: - branches: [ main, develop ] + branches: + - main + - develop pull_request: - branches: [ main, develop ] + branches: + - main + - develop jobs: build: @@ -14,8 +18,12 @@ jobs: strategy: fail-fast: true matrix: - php: [8.2, 8.3, 8.4] - core: ['4.3.2', '5.0.1'] + php: [ 8.2, 8.3, 8.4 ] + core: [ '4.3.2', '5.2' ] + laravel: [ 11, 12 ] + exclude: + - laravel: 12 + core: '4.3.2' steps: - name: Checkout Code @@ -33,6 +41,9 @@ jobs: - name: Set Laravel JSON:API Core Version run: composer require "laravel-json-api/core:^${{ matrix.core }}" --no-update + - name: Set Laravel Version + run: composer require "illuminate/contracts:^${{ matrix.laravel }}" --no-update + - name: Install dependencies uses: nick-fields/retry@v3 with: diff --git a/composer.json b/composer.json index 9ad188a..05deb07 100644 --- a/composer.json +++ b/composer.json @@ -25,13 +25,13 @@ "require": { "php": "^8.2", "ext-json": "*", - "illuminate/contracts": "^11.0", - "illuminate/support": "^11.0", - "laravel-json-api/core": "^4.3.2|^5.0.1", + "illuminate/contracts": "^11.0|^12.0", + "illuminate/support": "^11.0|^12.0", + "laravel-json-api/core": "^4.3.2|^5.2", "laravel-json-api/neomerx-json-api": "^5.0.3" }, "require-dev": { - "phpunit/phpunit": "^10.5" + "phpunit/phpunit": "^10.5|^11.0" }, "autoload": { "psr-4": { @@ -53,7 +53,7 @@ ] } }, - "minimum-stability": "stable", + "minimum-stability": "dev", "prefer-stable": true, "config": { "sort-packages": true