Skip to content

Commit

Permalink
chore(#46): laravel-11-support (#47)
Browse files Browse the repository at this point in the history
* adds laravel 11 support to composer.json.

* Keeps support for 8.1, Adds support for 8.2 & 8.3.  

* Updates docker fpm to 8.3.

* skip tests for 8.1 & laravel 11.

---------

Co-authored-by: pawel.majchrowicz <[email protected]>
Co-authored-by: Yorda <[email protected]>
  • Loading branch information
3 people authored Apr 19, 2024
1 parent 4231686 commit 998da8d
Show file tree
Hide file tree
Showing 4 changed files with 1,886 additions and 1,139 deletions.
46 changes: 40 additions & 6 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,36 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.1, 8.2]
laravel: [9.*, 10.*]
php: [8.1, 8.2, 8.3]
laravel: [9.*, 10.*, 11.*]
include:
- laravel: 10.*
testbench: 8
- laravel: 9.*
- php: 8.1
laravel: 11.*
testbench: 9.*
skip: true
- php: 8.2
laravel: 11.*
testbench: 9.*
- php: 8.3
laravel: 11.*
testbench: 9.*
- php: 8.1
laravel: 10.*
testbench: 8.*
- php: 8.2
laravel: 10.*
testbench: 8.*
- php: 8.3
laravel: 10.*
testbench: 8.*
- php: 8.1
laravel: 9.*
testbench: 7.*
- php: 8.2
laravel: 9.*
testbench: 7.*
- php: 8.3
laravel: 9.*
testbench: 7.*

name: PHP${{ matrix.php }} - Laravel ${{ matrix.laravel }}
Expand All @@ -39,7 +63,17 @@ jobs:
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: |
if [ "${{ matrix.skip }}" == "true" ]; then
echo "Skipping Install Dependencies ${{ matrix.php }} with Laravel 11."
exit 0
fi
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit
run: |
if [ "${{ matrix.skip }}" == "true" ]; then
echo "Skipping Test Execution for ${{ matrix.php }} with Laravel 11."
exit 0
fi
vendor/bin/phpunit --testdox
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.1-fpm
FROM php:8.3-fpm

RUN apt-get update \
&& apt-get -y install libzip-dev zlib1g-dev git zip unzip libicu-dev g++ libbz2-dev libmemcached-dev \
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
],
"minimum-stability": "dev",
"require": {
"php": "^8.1",
"illuminate/contracts": "^9.0|^10.0",
"php": "^8.1|^8.2|^8.3",
"illuminate/contracts": "^9.0|^10.0|^11.0",
"monolog/monolog": "^2.0|^3",
"guzzlehttp/guzzle": "^7.4.5"
"guzzlehttp/guzzle": "^7.5"
},
"require-dev": {
"ext-pdo_sqlite": "*",
"laravel/pint": "^1.0",
"orchestra/testbench": "^7.0|^8.4",
"phpunit/phpunit": "^9.5"
"orchestra/testbench": "^7.0|^8.0|^9.0",
"phpunit/phpunit": "^9.0|^10.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 998da8d

Please sign in to comment.