Skip to content

Commit fff66e2

Browse files
Merge pull request #3 from thekonz/master
Support laravel 9
2 parents 337df44 + 804d8ad commit fff66e2

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ trim_trailing_whitespace = true
1313

1414
[*.md]
1515
trim_trailing_whitespace = false
16+
17+
[*.yml]
18+
indent_size = 2

.github/workflows/test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Unit Test
2+
on: [ push ]
3+
jobs:
4+
run:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
php-version: ['8.0', '8.1']
9+
laravel-version: ['^9']
10+
steps:
11+
- name: Setup PHP
12+
uses: shivammathur/setup-php@v2
13+
with:
14+
php-version: ${{ matrix.php-version }}
15+
- uses: actions/checkout@v2
16+
- name: Install laravel
17+
run: composer require illuminate/contracts:${{ matrix.laravel-version }} --no-interaction --prefer-dist --no-progress
18+
- name: Run unit tests
19+
run: vendor/bin/phpunit
20+

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^7.2|^8.0",
22-
"illuminate/contracts": "^6.0|^7.0|^8.0",
23-
"illuminate/http": "^6.0|^7.0|^8.0",
24-
"illuminate/support": "^6.0|^7.0|^8.0"
21+
"php": "^8.0.2",
22+
"illuminate/contracts": "^9.0",
23+
"illuminate/http": "^9.0",
24+
"illuminate/support": "^9.0"
2525
},
2626
"require-dev": {
27-
"orchestra/testbench": "^4.0|^5.0|^6.0",
28-
"phpunit/phpunit": "^8.0|^9.0"
27+
"orchestra/testbench": "^7.0",
28+
"phpunit/phpunit": "^9.0"
2929
},
3030
"autoload": {
3131
"psr-4": {

0 commit comments

Comments
 (0)