From e572940a5d12d4b767fd731749c93cac11b35e64 Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Wed, 2 Feb 2022 20:04:20 +0500 Subject: [PATCH] laravel matrix --- .github/workflows/ci.yml | 7 +++++-- composer.json | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0eeccf7..bc9162b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,13 +7,16 @@ on: jobs: phpunit: - name: Tests (PHPUnit) + name: Tests (PHPUnit) L${{ matrix.laravel }} runs-on: ubuntu-latest + strategy: + matrix: + laravel: [8, 9] steps: - uses: actions/checkout@v2 - name: Install composer dependencies - run: composer install + run: composer require "laravel/framework:^${{matrix.laravel}}.0" - name: Run tests run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 43b2a39..c2487c7 100644 --- a/composer.json +++ b/composer.json @@ -25,5 +25,7 @@ }, "require-dev": { "orchestra/testbench": "^6.9|^7.0" - } + }, + "minimum-stability": "dev", + "prefer-stable": true }