Skip to content

Commit

Permalink
Add VideoPress to the concurrent test problem set. DRY it later
Browse files Browse the repository at this point in the history
  • Loading branch information
kraftbj committed Jan 27, 2025
1 parent 7aa668e commit f4ce5bc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,16 @@ jobs:
# Add WorDBles for publicize package tests since concurrency can nuke uploads that are in use.
if [[ "$TEST_SCRIPT" =~ ^test-(php|coverage)$ ]] && jq -e '.name == "automattic/jetpack-publicize"' projects/packages/publicize/composer.json >/dev/null; then
echo "Adding WorDBles for publicize tests"
echo "Adding WorDBless for publicize tests"
composer require --working-dir=projects/packages/publicize automattic/wordbless:^0.4.2 --dev
fi
# Add WorDBles for videopress package tests since concurrency can nuke uploads that are in use.
if [[ "$TEST_SCRIPT" =~ ^test-(php|coverage)$ ]] && jq -e '.name == "automattic/jetpack-videopress"' projects/packages/videopress/composer.json >/dev/null; then
echo "Adding WorDBless for videopress tests"
composer require --working-dir=projects/packages/videopress automattic/wordbless:^0.4.2 --dev
fi
if [[ ( "$TEST_SCRIPT" == "test-php" || "$TEST_SCRIPT" == "test-coverage" ) && ( "$WP_BRANCH" == 'trunk' || "$WP_BRANCH" == 'previous' ) ]]; then
VER=$(composer --format=json --working-dir="tools/php-test-env" show | jq -r '.installed[] | select( .name == "roots/wordpress" ) | .version')
if [[ -n "$VER" ]]; then
Expand Down

0 comments on commit f4ce5bc

Please sign in to comment.