Skip to content

Commit c5e0da4

Browse files
authored
added laravel 10, removed laravel 8
1 parent 29dc4d4 commit c5e0da4

File tree

2 files changed

+24
-18
lines changed

2 files changed

+24
-18
lines changed

.github/workflows/tests.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,38 @@ 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: ['7.3', '7.4', '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
1827
uses: actions/checkout@v2
1928

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') }}
25-
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
35-
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
3640
- name: Execute tests
3741
run: vendor/bin/phpunit

composer.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
}
2222
],
2323
"require": {
24-
"php": ">=7.3",
25-
"laravel/framework": ">=6.0"
24+
"php": "^8.0",
25+
"laravel/framework": "^9.0|^10.0"
2626
},
2727
"require-dev": {
28-
"phpunit/phpunit": ">=9.0",
29-
"orchestra/testbench": ">=6.0"
28+
"phpunit/phpunit": "^9.5",
29+
"orchestra/testbench": "^7.4|^8.0"
3030
},
3131
"autoload": {
3232
"psr-4": {
@@ -44,5 +44,7 @@
4444
"Akaunting\\Sortable\\Provider"
4545
]
4646
}
47-
}
47+
},
48+
"minimum-stability": "dev",
49+
"prefer-stable": true
4850
}

0 commit comments

Comments
 (0)