Skip to content

Commit 3c21127

Browse files
author
Dieter Stinglhamber
committed
Merge branch 'laravel-shift-l10-compatibility'
2 parents 53cea93 + fe06f9f commit 3c21127

File tree

4 files changed

+54
-4
lines changed

4 files changed

+54
-4
lines changed

.github/workflows/phpunit-l10.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Run PHPUnit tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
tests:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
php: [8.1]
19+
laravel: [10.*]
20+
dependency: [prefer-lowest, prefer-stable]
21+
include:
22+
- laravel: 10.*
23+
testbench: 8.*
24+
25+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency }}
26+
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v1
30+
31+
- name: Cache dependencies
32+
uses: actions/cache@v1
33+
with:
34+
path: ~/.composer/cache/files
35+
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
36+
37+
- name: Setup PHP
38+
uses: shivammathur/setup-php@v2
39+
with:
40+
php-version: ${{ matrix.php }}
41+
extensions: dom, curl, libxml, mbstring, pcntl, intl, exif, iconv
42+
coverage: none
43+
44+
- name: Install dependencies
45+
run: |
46+
composer require "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --no-progress
47+
composer update --${{ matrix.dependency }} --prefer-dist --no-interaction --no-suggest --no-progress
48+
49+
- name: Execute tests
50+
run: vendor/bin/phpunit

.github/workflows/phpunit-l8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
php: [8.0, 7.4, 7.3]
18+
php: [8.0, 7.4, 7.3, 8.1]
1919
laravel: [8.*]
2020
dependency: [prefer-lowest, prefer-stable]
2121
include:

.github/workflows/phpunit-l9.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
php: [8.0]
18+
php: [8.0, 8.1]
1919
laravel: [9.*]
2020
dependency: [prefer-lowest, prefer-stable]
2121
include:

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
],
1515
"require": {
1616
"php": "^7.3 | ^7.4 | ^8.0",
17-
"illuminate/support": "^8.71 | ^9.0"
17+
"illuminate/support": "^8.71 | ^9.0 | ^10.0"
1818
},
1919
"require-dev": {
20-
"orchestra/testbench": "^6.23 | ^7.0",
20+
"orchestra/testbench": "^6.23 | ^7.0 | ^8.0",
2121
"phpunit/phpunit": "^9.5.10",
2222
"mockery/mockery": "^1.4.4"
2323
},

0 commit comments

Comments
 (0)