Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 11.x Compatibility #100

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 25 additions & 3 deletions .github/workflows/automated-test.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,56 @@
name: PHPUnit Tests
on: [push, pull_request]

on:
- push
- pull_request

jobs:
phpunit:

runs-on: ubuntu-20.04

strategy:
matrix:
php: [7.4, 8.0, 8.1, 8.2]
laravel: [10.*, 9.*]
laravel: ['9.*', '10.*', '11.*']
stability: [prefer-lowest, prefer-stable]
exclude:
- laravel: 10.*
php: 7.4
- laravel: 10.*
php: 8.0
- laravel: 11.*
php: 7.4
- laravel: 11.*
php: 8.0
- laravel: 11.*
php: 8.1

name: PHP ${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability}}


steps:
- name: Checkout
uses: actions/checkout@v2


- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: pcov


- name: Install dependencies
uses: ramsey/composer-install@v2
with:
composer-options: "--prefer-dist --${{ matrix.stability }}"
composer-options: --prefer-dist --${{ matrix.stability }}


- name: Run phpunit
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml -v


- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -41,7 +60,10 @@ jobs:

finish-coverage:
needs: phpunit

runs-on: ubuntu-latest


steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
Expand Down
18 changes: 9 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@
"require": {
"php": ">=7.3.0",
"ext-json": "*",
"illuminate/support": "^6.20.42|^8.22.1|^9.0|^10.0",
"illuminate/database": "^6.20.42|^8.22.1|^9.0|^10.0",
"illuminate/support": "^6.20.42|^8.22.1|^9.0|^10.0|^11.0",
"illuminate/database": "^6.20.42|^8.22.1|^9.0|^10.0|^11.0",
"phpoption/phpoption": "^1.8"
},
"require-dev": {
"symfony/symfony": "^5.4.1|^6.1",
"symfony/symfony": "^5.4.1|^6.1|^7.0",
"laravel/legacy-factories": "^1.0.4",
"orchestra/testbench": "^5.20|^6.23|^7.0|^8.0",
"phpunit/phpunit": "^9.5.11",
"orchestra/testbench": "^5.20|^6.23|^7.0|^8.0|^9.0",
"phpunit/phpunit": "^9.5.11|^10.5",
"guzzlehttp/guzzle": "^7.2",
"guzzlehttp/promises": "^1.4",
"guzzlehttp/promises": "^1.4|^2.0",
"mockery/mockery": "^1.4.2",
"nesbot/carbon" : "^2.62.1",
"nesbot/carbon": "^2.62.1|^3.0",
"php-coveralls/php-coveralls": "^2.4.2"
},
"autoload-dev":{
"autoload-dev": {
"psr-4": {
"Plank\\Metable\\Tests\\" : "tests/"
"Plank\\Metable\\Tests\\": "tests/"
}
},
"minimum-stability": "stable",
Expand Down