Skip to content

Commit

Permalink
Merge pull request #5604 from kenjis/fix-workflows/test-phpunit
Browse files Browse the repository at this point in the history
chore: generate coverage report by PHPUnit only on PHP 8.0
  • Loading branch information
kenjis committed Jan 21, 2022
2 parents a7e9207 + ed67dcc commit 812af1e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test-phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,15 @@ jobs:
if: matrix.php-versions == '8.0'
run: echo "TACHYCARDIA_MONITOR_GA=enabled" >> $GITHUB_ENV

- name: Compute coverage option
uses: actions/github-script@v3
id: phpunit-coverage-option
with:
script: 'return "${{ matrix.php-versions }}" == "8.0" ? "" : "--no-coverage"'
result-encoding: string

- name: Test with PHPUnit
run: script -e -c "vendor/bin/phpunit --color=always --exclude-group=auto-review"
run: script -e -c "vendor/bin/phpunit --color=always --exclude-group=auto-review ${{ steps.phpunit-coverage-option.outputs.result }}"
env:
DB: ${{ matrix.db-platforms }}
TERM: xterm-256color
Expand Down

0 comments on commit 812af1e

Please sign in to comment.