Skip to content

Commit

Permalink
Fix error in installing packages in build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Nov 15, 2023
1 parent 837ef53 commit 50a2ab9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}

- name: Check PHP Version
- name: Check the PHP version
run: php -v

- name: Validate composer.json and composer.lock
Expand All @@ -32,11 +32,19 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Install packages based on PHP version
- name: Install packages not specified for PHP 5.3
run: if [[ ${{ steps.setup-php.outputs.php-version }} != '5.3' ]]; then composer require league/container:~2.4 nikic/fast-route phroute/phroute zendframework/zend-diactoros zendframework/zend-stratigility --dev; fi

- name: Install packages for PHP 7.1
run: if [[ ${{ steps.setup-php.outputs.php-version }} == '7.1' ]]; then composer require zendframework/zend-stratigility:~2.0 && composer update --dev; fi

- name: Install packages for PHP 7.2
run: if [[ ${{ steps.setup-php.outputs.php-version }} == '7.2' ]]; then composer require zendframework/zend-stratigility:~2.0 && composer update --dev; fi

- name: Install packages for PHP 7.3
run: if [[ ${{ steps.setup-php.outputs.php-version }} == '7.3' ]]; then composer require zendframework/zend-stratigility:~2.0 && composer update --dev; fi

- name: Install packages for PHP 7.4
run: if [[ ${{ steps.setup-php.outputs.php-version }} == '7.4' ]]; then composer require zendframework/zend-stratigility:~2.0 && composer update --dev; fi

- name: Run test suite
Expand Down

0 comments on commit 50a2ab9

Please sign in to comment.