Skip to content

Commit 124969c

Browse files
committedJan 11, 2023
add support for laravel v10
1 parent dc7bf16 commit 124969c

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed
 

‎.github/workflows/tests.yml

+12-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- main
1111
- dev
1212
schedule:
13-
- cron: '0 0 10 * *'
13+
- cron: '0 0 12 * *'
1414

1515
jobs:
1616
tests:
@@ -20,10 +20,13 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
php: [8.0, 8.1, 8.2]
24-
composer-flag: [prefer-lowest, prefer-stable]
23+
php: [ 8.0, 8.1, 8.2 ]
24+
laravel: [ 9, 10 ]
25+
exclude:
26+
- php: 8.0
27+
laravel: 10
2528

26-
name: php v${{ matrix.php }} - ${{ matrix.composer-flag }}
29+
name: php v${{ matrix.php }} - Laravel v${{ matrix.laravel }}
2730

2831
steps:
2932
- name: Checkout code
@@ -34,15 +37,18 @@ jobs:
3437
with:
3538
php-version: ${{ matrix.php }}
3639
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo
40+
ini-values: error_reporting=E_ALL
3741
coverage: pcov
3842

3943
- name: Install dependencies
40-
run: composer update --${{ matrix.composer-flag }} --no-interaction --no-progress
44+
run: |
45+
composer require "illuminate/contracts=^${{ matrix.laravel }}" --dev --no-update
46+
composer update --prefer-dist --no-interaction --no-progress
4147
4248
- name: Execute tests
4349
run: composer test:coverage
4450

4551
- name: Upload coverage report
46-
uses: codecov/codecov-action@v2
52+
uses: codecov/codecov-action@v3
4753
with:
4854
fail_ci_if_error: false

‎composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
],
1717
"require": {
1818
"php": "^8.0.0",
19-
"illuminate/http": "^9.34",
20-
"illuminate/support": "^9.34",
21-
"illuminate/translation": "^9.34",
19+
"illuminate/http": "^9.34 || ^10",
20+
"illuminate/support": "^9.34|| ^10",
21+
"illuminate/translation": "^9.34|| ^10",
2222
"stripe/stripe-php": "^9.0 || ^10.0"
2323
},
2424
"require-dev": {
2525
"mockery/mockery": "^1.4",
26-
"orchestra/testbench": "^7.9",
26+
"orchestra/testbench": "^7.9 || ^8.0",
2727
"phpunit/phpunit": "^9.5.10"
2828
},
2929
"autoload": {

0 commit comments

Comments
 (0)