Skip to content

Commit

Permalink
test: ensure tests are actually running against all supported Laravel…
Browse files Browse the repository at this point in the history
… versions
  • Loading branch information
andreiio committed Sep 10, 2020
1 parent 84f9540 commit 919bcfe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6,394 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ jobs:
strategy:
fail-fast: false
matrix:
laravel: [8.*, 7.*, 6.*, 5.8]
php: [7.4, 7.3] # Add 7.2 and 7.1 if you want
os: [ubuntu-latest]

name: PHP${{ matrix.php }} on ${{ matrix.os }}
name: Laravel ${{ matrix.laravel }} PHP${{ matrix.php }} on ${{ matrix.os }}
container:
image: lorisleiva/laravel-docker:${{ matrix.php }}
steps:
Expand All @@ -27,10 +28,11 @@ jobs:
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Install dependencies
run: |
composer require --prefer-dist --no-progress --no-suggest --no-interaction "illuminate/support:${{ matrix.laravel }}"
composer install --prefer-dist --no-progress --no-suggest --no-interaction
- name: Run tests
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/vendor/
/tests/fixtures/tmp/
.phpunit.result.cache
composer.lock
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"illuminate/support": "^5.8|^6.0|^7.0|^8.0"
},
"require-dev": {
"orchestra/testbench": "^5.0|^6.0"
"orchestra/testbench": "^3.8|^4.0|^5.0|^6.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 919bcfe

Please sign in to comment.