Skip to content

Commit b9706fd

Browse files
Sarthak JaiswalSarthak Jaiswal
authored andcommitted
Update command to install phpunit in gh action workflow
1 parent 466eb25 commit b9706fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/php-test-plugins.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ jobs:
7373
run: npm run wp-env start
7474
- name: Composer Install
7575
run: npm run wp-env run tests-cli -- --env-cwd="wp-content/plugins/$(basename $(pwd))" composer install --no-interaction --no-progress
76+
- name: Install PHPUnit
77+
run: composer require --dev phpunit/phpunit:${{ matrix.phpunit }}
78+
if: matrix.phpunit != ''
7679
- name: Running single site unit tests
7780
run: |
7881
if [ "${{ matrix.coverage }}" == "true" ]; then

0 commit comments

Comments
 (0)