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 50a2ab9 commit 370396d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,24 @@ jobs:
run: composer install --prefer-dist --no-progress

- 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
if: ${{ steps.setup-php.outputs.php-version != '5.3' }}
run: composer require league/container:~2.4 nikic/fast-route phroute/phroute zendframework/zend-diactoros zendframework/zend-stratigility

- 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
if: ${{ steps.setup-php.outputs.php-version == '7.1' }}
run: composer require zendframework/zend-stratigility:~2.0

- 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
if: ${{ steps.setup-php.outputs.php-version == '7.2' }}
run: composer require zendframework/zend-stratigility:~2.0

- 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
if: ${{ steps.setup-php.outputs.php-version == '7.3' }}
run: composer require zendframework/zend-stratigility:~2.0

- 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
if: ${{ steps.setup-php.outputs.php-version == '7.4' }}
run: composer require zendframework/zend-stratigility:~2.0

- name: Run test suite
run: vendor/bin/phpunit

0 comments on commit 370396d

Please sign in to comment.