From 31cffcc3e604751aef541f3ce18eac86d28a5bc4 Mon Sep 17 00:00:00 2001 From: Matthew Nessworthy Date: Thu, 6 Oct 2022 15:38:08 +0200 Subject: [PATCH 1/3] Laravel 9 Compatibility --- composer.json | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index a31d7ce..55e268f 100644 --- a/composer.json +++ b/composer.json @@ -18,8 +18,8 @@ ], "require": { "php": "^7.3|^8.0", - "illuminate/events": "^7.0|^8.0", - "illuminate/support": "^7.0|^8.0", + "illuminate/events": "^7|^8|^9", + "illuminate/support": "^7|^8|^9", "symfony/event-dispatcher": "^5.1", "symfony/workflow": "^5.1", "symfony/property-access": "^5.1" @@ -28,9 +28,9 @@ "funkjedi/composer-include-files": "^1.0", "laravel/legacy-factories": "^1.1", "mockery/mockery": "^1.3|^1.4.2", - "orchestra/database": "^5.0|^6.0", - "orchestra/testbench": "^5.0|^6.0", - "phpunit/phpunit": "^8.0|^9.3.3" + "orchestra/database": "^5|^6|^7", + "orchestra/testbench": "^5|^6|^7", + "phpunit/phpunit": "^8|^9" }, "extra": { "include_files": [ @@ -56,5 +56,10 @@ ] }, "minimum-stability": "dev", - "prefer-stable": true + "prefer-stable": true, + "config": { + "allow-plugins": { + "funkjedi/composer-include-files": true + } + } } From 0fc35515945898e9c3ebea66d8d6ec2b100e729c Mon Sep 17 00:00:00 2001 From: Matthew Nessworthy Date: Thu, 6 Oct 2022 15:39:43 +0200 Subject: [PATCH 2/3] PHP 8.1 test --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aff9923..00c49f4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,11 +14,13 @@ jobs: strategy: matrix: - php: [7.3, 7.4, 8.0] + php: [7.3, 7.4, 8.0, 8.1] setup: [basic, stable, lowest] exclude: - php: 8.0 setup: lowest + - php: 8.1 + setup: lowest steps: - name: Checkout From 2245cd4caee2f176d4e358e80a854d4ce853a317 Mon Sep 17 00:00:00 2001 From: Matthew Nessworthy Date: Thu, 6 Oct 2022 16:31:15 +0200 Subject: [PATCH 3/3] Update main.yml --- .github/workflows/main.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 00c49f4..3ba4cf0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,26 +24,13 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup PHP - uses: shivammathur/setup-php@v1 + uses: shivammathur/setup-php@v2 with: php-version: ${{matrix.php}} - - name: Get Composer cache directory - id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - - name: Cache Composer dependencies - uses: actions/cache@v1 - with: - path: ${{ steps.composer-cache.outputs.dir }} - # Use composer.json for key, if composer.lock is not committed. - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} - # key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: ${{ runner.os }}-composer- - - name: Install Composer dependencies run: | if [[ ${{matrix.setup}} = 'basic' ]]; then composer install --prefer-dist --no-interaction --no-suggest; fi