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

Allow Laravel 9 and improve CI #32

Merged
merged 2 commits into from
Feb 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -6,24 +6,28 @@ jobs:
phpunit:
runs-on: ubuntu-latest

strategy:
matrix:
php: [ '7.3', '7.4', '8.0', '8.1' ]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @leohubert . Didn't know how to set this up. Excellent work! πŸ‘


steps:
- name: Cancel Previous Run
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Setup PHP
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, exif, imagick, bcmath
coverage: none

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

- name: Install Composer dependencies
run: composer install --ignore-platform-reqs
run: composer install

- name: Run tests
run: ./vendor/bin/phpunit
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -16,13 +16,13 @@
}
],
"require": {
"php": "^7.2|^7.3|^7.4|^8.0",
"illuminate/support": "^6.0|^7.0|^8.0",
"php": "^7.3|^7.4|^8.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0",
"javoscript/laravel-macroable-models": "^1.0"
},
"require-dev": {
"laravel/legacy-factories": "^1.0.4",
"orchestra/testbench": "^4.0|^5.0|^6.0",
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0",
"phpunit/phpunit": "^8.0|^9.0"
},
"autoload": {