Skip to content

Commit 919bcfe

Browse files
committed
test: ensure tests are actually running against all supported Laravel versions
1 parent 84f9540 commit 919bcfe

File tree

4 files changed

+6
-6394
lines changed

4 files changed

+6
-6394
lines changed

.github/workflows/tests.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13+
laravel: [8.*, 7.*, 6.*, 5.8]
1314
php: [7.4, 7.3] # Add 7.2 and 7.1 if you want
1415
os: [ubuntu-latest]
1516

16-
name: PHP${{ matrix.php }} on ${{ matrix.os }}
17+
name: Laravel ${{ matrix.laravel }} PHP${{ matrix.php }} on ${{ matrix.os }}
1718
container:
1819
image: lorisleiva/laravel-docker:${{ matrix.php }}
1920
steps:
@@ -27,10 +28,11 @@ jobs:
2728
uses: actions/cache@v1
2829
with:
2930
path: ~/.composer/cache/files
30-
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
31+
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
3132

3233
- name: Install dependencies
3334
run: |
35+
composer require --prefer-dist --no-progress --no-suggest --no-interaction "illuminate/support:${{ matrix.laravel }}"
3436
composer install --prefer-dist --no-progress --no-suggest --no-interaction
3537
3638
- name: Run tests

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
/vendor/
44
/tests/fixtures/tmp/
55
.phpunit.result.cache
6+
composer.lock

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"illuminate/support": "^5.8|^6.0|^7.0|^8.0"
1616
},
1717
"require-dev": {
18-
"orchestra/testbench": "^5.0|^6.0"
18+
"orchestra/testbench": "^3.8|^4.0|^5.0|^6.0"
1919
},
2020
"autoload": {
2121
"psr-4": {

0 commit comments

Comments
 (0)