Skip to content

Commit

Permalink
Improve CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed Feb 9, 2022
1 parent d9433c8 commit 5543705
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/php-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- name: Check code styles
run: |
./vendor/bin/phpcs -q --report-full --report-checkstyle="phpcs-report.xml" --runtime-set testVersion 7.2- --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1
./vendor/bin/phpcs -q --report-full --report-checkstyle="phpcs-report.xml" --runtime-set testVersion 7.2- --runtime-set ignore_errors_on_exit 1
cs2pr --graceful-warnings phpcs-report.xml
- name: Check Psalm
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:

- name: Check if PHPUnit 9 is installed
id: phpunit_ver
run: echo ::set-output name=is_phpunit_9::$(composer show phpunit/phpunit | grep "* 9\.5\." -c)
run: echo ::set-output name=is_phpunit_9::$(composer show phpunit/phpunit | grep -E -c 'versions.+9')

- name: Migrate PHPUnit configuration (PHPUnit 9)
if: ${{ steps.phpunit_ver.outputs.is_phpunit_9 != 0 }}
Expand All @@ -92,7 +92,7 @@ jobs:
run: ./vendor/bin/phpunit --testsuite=unit ${{ ((env.USE_COVERAGE == 'yes') && '--coverage-clover=coverage.xml') || '--no-coverage' }}

- name: Update codecov.io
uses: codecov/codecov-action@v1
if: ${{ env.USE_COVERAGE == 'yes' }}
uses: codecov/codecov-action@v2
if: ${{ (env.USE_COVERAGE == 'yes') && (github.ref == 'refs/heads/master') }}
with:
file: ./coverage.xml

0 comments on commit 5543705

Please sign in to comment.