Updated workflow to install dependencies from composer.json

pull/2/head
Aryan Ahmed Anik 3 years ago
parent 6bd5097c68
commit 0b0b51517c

@ -10,13 +10,8 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
php: [8.1, 8.0] php: [8.1, 8.0]
laravel: [9.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 9.*
testbench: 7.*
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} name: PHP${{ matrix.php }}
steps: steps:
- name: Checkout code - name: Checkout code
@ -30,9 +25,7 @@ jobs:
coverage: none coverage: none
- name: Install dependencies - name: Install dependencies
run: | run: composer install
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "symfony/console:>=4.3.4" "mockery/mockery:^1.3.2" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Create Environment file and generate app key - name: Create Environment file and generate app key
run: | run: |

Loading…
Cancel
Save