Skip to content

Commit

Permalink
Run tests if priming succeeds.
Browse files Browse the repository at this point in the history
  • Loading branch information
costdev committed Jan 8, 2025
1 parent 60dfaab commit befb224
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/phpunit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ jobs:
run: bash bin/install-wp-tests.sh wordpress_tests root root 127.0.0.1 latest true

- name: Prime the WordPress install for tests
id: prime-tests
run: XDEBUG_MODE=off phpunit${{ matrix.multisite && ' -c tests/phpunit/multisite.xml' || '' }} --filter gha_install_wp > /dev/null 2>&1

- name: Run tests
if: steps.prime-tests.outcome == 'success'
run: XDEBUG_MODE=off WP_TESTS_SKIP_INSTALL=1 phpunit${{ matrix.multisite && ' -c tests/phpunit/multisite.xml' || '' }}

0 comments on commit befb224

Please sign in to comment.