Skip to content

Commit

Permalink
Upgrade php/laravel versions (#86)
Browse files Browse the repository at this point in the history
Added support Laravel 10/11 and PHP 8.1 / 8.2
  • Loading branch information
pvsaintpe authored Apr 24, 2024
1 parent fa81f2a commit 87c045c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 28 deletions.
35 changes: 11 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ env:
DB_PASSWORD: 'postgres'
DB_HOST: '127.0.0.1'

jobs:
jobs:
lint:
runs-on: '${{ matrix.operating_system }}'
timeout-minutes: 20
strategy:
timeout-minutes: 20
strategy:
matrix:
operating_system:
- ubuntu-latest
php_versions:
- '7.4'
fail-fast: false
env:
env:
PHP_CS_FIXER_FUTURE_MODE: '0'
name: 'Lint PHP'
steps:
steps:
- name: 'Checkout'
uses: actions/checkout@v2
- name: 'Setup cache environment'
Expand All @@ -58,11 +58,11 @@ jobs:
key: '${{ steps.cache-env.outputs.key }}'
restore-keys: '${{ steps.cache-env.outputs.key }}'
- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
with:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_versions }}
extensions: '${{ env.php_extensions }}'
ini-values: memory_limit=-1
ini-values: memory_limit=-1
tools: pecl, composer
coverage: none
- name: 'Setup problem matchers for PHP (aka PHP error logs)'
Expand Down Expand Up @@ -129,25 +129,13 @@ jobs:
exclude_group: WithoutSchema,forPHP7
- operating_system: 'ubuntu-latest'
php_versions: '8.1'
postgres: '10'
experimental: false
postgres: '14'
coverage: false
exclude_group: WithoutSchema,forPHP7
- operating_system: 'ubuntu-latest'
php_versions: '8.1'
postgres: '11'
experimental: false
coverage: false
exclude_group: WithoutSchema,forPHP7
- operating_system: 'ubuntu-latest'
php_versions: '8.1'
postgres: '12'
experimental: false
coverage: true
exclude_group: WithoutSchema,forPHP7
- operating_system: 'ubuntu-latest'
php_versions: '8.1'
postgres: '13'
php_versions: '8.2'
postgres: '15'
coverage: false
experimental: false
exclude_group: WithoutSchema,forPHP7
Expand Down Expand Up @@ -209,7 +197,6 @@ jobs:
-e "s/\${HOST}/${{ env.DB_HOST }}/" \
phpunit.xml.dist > phpunit.xml
./vendor/bin/phpunit \
--verbose \
--stderr \
--exclude-group ${{ matrix.exclude_group }} \
--coverage-clover build/logs/clover.xml \
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@
},
"require": {
"ext-pdo": "*",
"php": "^7.2|^7.3|^7.4|^8.0",
"php": "^7.2|^7.3|^7.4|^8.0|^8.1|^8.2",
"doctrine/dbal": "^2.9|^3.0",
"laravel/framework": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0"
"laravel/framework": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0"
},
"require-dev": {
"umbrellio/code-style-php": "^1.0",
"orchestra/testbench": "^3.5|^6.0|^4.0|^7.0|^8.0",
"php-coveralls/php-coveralls": "^2.1",
"php-coveralls/php-coveralls": "^2.1|^2.7",
"codeception/codeception": "^3.0|^4.0|^5.0",
"phpunit/phpunit": "^9.6 || ^10.0"
"phpunit/phpunit": "^9.6|^10.0|^11.0"
},
"scripts": {
"lint": [
Expand Down

0 comments on commit 87c045c

Please sign in to comment.