Skip to content

Commit 1fff0e3

Browse files
authored
removed laravel 8
1 parent 7e80466 commit 1fff0e3

File tree

2 files changed

+25
-18
lines changed

2 files changed

+25
-18
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,39 @@ on: [push, pull_request]
44

55
jobs:
66
tests:
7-
8-
name: PHP ${{ matrix.php }}
7+
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.stability }}
98

109
runs-on: ubuntu-latest
1110

1211
strategy:
1312
matrix:
14-
php: ['8.0', '8.1']
13+
php: ['8.0', '8.1', '8.2']
14+
laravel: [9.*, 10.*]
15+
stability: [prefer-lowest, prefer-stable]
16+
include:
17+
- laravel: 9.*
18+
testbench: 7.*
19+
- laravel: 10.*
20+
testbench: 8.*
21+
exclude:
22+
- laravel: 10.*
23+
php: 8.0
1524

1625
steps:
1726
- name: Checkout code
18-
uses: actions/checkout@v2
19-
20-
- name: Cache composer
21-
uses: actions/cache@v1
22-
with:
23-
path: ~/.composer/cache/files
24-
key: php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
27+
uses: actions/checkout@v3
2528

2629
- name: Setup PHP
2730
uses: shivammathur/setup-php@v2
2831
with:
2932
php-version: ${{ matrix.php }}
30-
extension-csv: bcmath, ctype, dom, fileinfo, intl, gd, json, mbstring, pdo, pdo_sqlite, openssl, sqlite, xml, zip
33+
extensions: bcmath, ctype, dom, fileinfo, intl, gd, json, mbstring, pdo, pdo_sqlite, openssl, sqlite, xml, zip
3134
coverage: none
3235

33-
- name: Install composer
34-
run: composer install --no-interaction --no-scripts --no-suggest --prefer-source
36+
- name: Install dependencies
37+
run: |
38+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
39+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
3540
3641
- name: Execute tests
3742
run: vendor/bin/phpunit

composer.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
}
1919
],
2020
"require": {
21-
"php": ">=8.0",
22-
"laravel/framework": ">=8.0"
21+
"php": "^8.0",
22+
"laravel/framework": "^9.0|^10.0"
2323
},
2424
"require-dev": {
25-
"phpunit/phpunit": ">=9.0",
26-
"orchestra/testbench": ">=7.0"
25+
"phpunit/phpunit": "^9.5",
26+
"orchestra/testbench": "^7.4|^8.0"
2727
},
2828
"autoload": {
2929
"psr-4": {
@@ -41,5 +41,7 @@
4141
"Akaunting\\MutableObserver\\Provider"
4242
]
4343
}
44-
}
44+
},
45+
"minimum-stability": "dev",
46+
"prefer-stable": true
4547
}

0 commit comments

Comments
 (0)