Skip to content

Commit

Permalink
Merge pull request #32 from leohubert/master
Browse files Browse the repository at this point in the history
Allow Laravel 9 and improve CI
  • Loading branch information
asantibanez authored Feb 17, 2022
2 parents 66faa18 + defdc69 commit ef11882
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,28 @@ jobs:
phpunit:
runs-on: ubuntu-latest

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

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
Expand Up @@ -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": {
Expand Down

0 comments on commit ef11882

Please sign in to comment.