From a0d543c53c8c02724524e1ad1fe6cf2ef2a0d660 Mon Sep 17 00:00:00 2001 From: Jonas Siewertsen Date: Thu, 11 May 2023 08:49:19 +0200 Subject: [PATCH] Statamic 4 support (#9) --- .github/workflows/tests.yml | 21 +++++++++------------ README.md | 4 ++-- composer.json | 8 ++++---- 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c304de2..ee93647 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,30 +1,27 @@ name: Run Tests on: - push: - pull_request: - schedule: - - cron: '0 0 * * *' + push: + pull_request: jobs: php-tests: - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest strategy: fail-fast: false matrix: php: [8.1, 8.0] - laravel: [9.*, 8.*] + laravel: [10.*, 9.*] dependency-version: [prefer-stable] - os: [ubuntu-latest] include: - - laravel: 8.* - testbench: 6.* - laravel-constraint: ^8.18.1 - laravel: 9.* testbench: 7.* + laravel-constraint: ^8.18.1 + - laravel: 10.* + testbench: 8.* - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} steps: - name: Checkout code @@ -41,5 +38,5 @@ jobs: run: | composer require "laravel/framework:${{ matrix.laravel-constraint || matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" ${{ matrix.additional-deps }} --no-interaction --no-update composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction - - name: Run PHPUnit + - name: Run PHPUnit tests run: composer test diff --git a/README.md b/README.md index 2bd8752..f6004f9 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,8 @@ You can access your failed jobs via the default artisan commands. Fx.: ## Requirements - PHP >= 8.0 -- Laravel 9 -- Statamic >= 3.2 +- Laravel 10 or 9 +- Statamic 3 or 4 ## Support I love to share with the community. Nevertheless, it does take a lot of work, time and effort. diff --git a/composer.json b/composer.json index 8a9aade..cb08c5d 100644 --- a/composer.json +++ b/composer.json @@ -28,12 +28,12 @@ }, "require": { "php": "^8.0", - "illuminate/support": "^9.0", - "statamic/cms": "3.3.* || 3.4.*" + "illuminate/support": "^10.0 || ^9.0", + "statamic/cms": "^4.0 || ^3.0" }, "require-dev": { - "orchestra/testbench": "^6.0", - "phpunit/phpunit": "^9.3" + "orchestra/testbench": "^8.0 || ^7.0", + "phpunit/phpunit": "^10.1 || ^9.3" }, "scripts": { "test": "vendor/bin/phpunit",