chore: test matrix for various laravel versions

This commit is contained in:
Feek 2020-04-18 14:21:19 -07:00
parent 845ce6b740
commit 4de09ed5e9
2 changed files with 10 additions and 3 deletions

View File

@ -11,12 +11,20 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.1, 8.0]
illuminate_version: [5.5.*, 6.*, 7.*]
name: PHP ${{ matrix.php }} | Illuminate ${{ matrix.illuminate_version }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: export COMPOSER_ROOT_VERSION=dev-master && composer install --prefer-dist --no-progress --no-suggest
run: |
export COMPOSER_ROOT_VERSION=dev-master
composer require "illuminate/container:${{ matrix.illuminate_version }}" "illuminate/contracts:${{ matrix.illuminate_version }}" "illuminate/database:${{ matrix.illuminate_version }}" "illuminate/http:${{ matrix.illuminate_version }}" "illuminate/support:${{ matrix.illuminate_version }}" --no-interaction --no-progress --no-suggest
- name: Run Tests
run: vendor/bin/codecept run

View File

@ -12,8 +12,7 @@
"illuminate/http": "^5.5 || ^6.0 || ^7.0",
"illuminate/support": "^5.5 || ^6.0 || ^7.0",
"vimeo/psalm": "^3.8.2",
"orchestra/testbench": "^3.5 || ^4.0 || ^5.0",
"nesbot/carbon": "^2"
"orchestra/testbench": "^3.5 || ^4.0 || ^5.0"
},
"license": "MIT",
"authors": [