Skip to content

Commit

Permalink
Support PHP 8.2 (#37)
Browse files Browse the repository at this point in the history
* Support php 8.2

* WIP

* WIP

* WIP
  • Loading branch information
Xammie committed Dec 9, 2022
1 parent bad7ba0 commit aa9f060
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [7.4, 8.0]
laravel: [8.*, 9.*]
php: [7.4, 8.0, 8.1, 8.2]
laravel: [^8.79, 9.*]
stability: [prefer-lowest, prefer-stable]
exclude:
- laravel: 9.*
php: 7.4
include:
- laravel: 8.*
- laravel: ^8.79
testbench: ^6.6
- laravel: 9.*
testbench: ^7.0
Expand All @@ -29,7 +29,7 @@ jobs:

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -42,9 +42,11 @@ jobs:
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "ramsey/collection:^1.2.2" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/phpunit
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
}
],
"require": {
"php": "^7.4|^8.0",
"php": "^7.4|^8.0|^8.1|^8.2",
"gajus/dindent": "^2.0.2",
"illuminate/support": "^8.0|^9.0"
"illuminate/support": "^8.0|^9.43"
},
"require-dev": {
"orchestra/testbench": "^6.0|^7.0",
Expand Down

0 comments on commit aa9f060

Please sign in to comment.