Skip to content

Commit

Permalink
Merge pull request #27 from szepeviktor/patch-3
Browse files Browse the repository at this point in the history
Use atleast-version option in CI
  • Loading branch information
gmazzap authored Feb 25, 2022
2 parents 27a478f + 289b46d commit 15564dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/php-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ jobs:

- name: Check if PHPUnit 9 is installed
id: phpunit_ver
run: echo ::set-output name=is_phpunit_9::$(./vendor/bin/phpunit --version | grep -c '9\.')
run: echo ::set-output name=is_phpunit_9::$(./vendor/bin/phpunit --atleast-version "9"; echo "$?")

- name: Migrate PHPUnit configuration (PHPUnit 9)
if: ${{ steps.phpunit_ver.outputs.is_phpunit_9 != 0 }}
if: ${{ steps.phpunit_ver.outputs.is_phpunit_9 == 0 }}
run: ./vendor/bin/phpunit --migrate-configuration

- name: Run unit tests
Expand Down

0 comments on commit 15564dc

Please sign in to comment.