Skip to content

Commit 3f052b6

Browse files
committed
Make test-releases parallel
1 parent bced86b commit 3f052b6

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

bin/test-releases

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
set -euo pipefail
33

44
# Test releases against the oldest and newest supported PHP versions
5-
for php in php84 php81; do
6-
for pluginPkg in plugin pluginWpOrg; do
7-
echo "Testing $pluginPkg with $php"
8-
PHP_PACKAGE="$php" STATIC_DEPLOY_PACKAGE="$pluginPkg" nix flake check --impure ./dev
9-
done
10-
done
5+
parallel --tagstring "{1} {2}" --line-buffer '
6+
echo "Testing {2} with {1}"
7+
PHP_PACKAGE="{1}" STATIC_DEPLOY_PACKAGE="{2}" nix flake check --impure ./dev
8+
' ::: php84 php81 ::: plugin pluginWpOrg

dev/flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@
414414
jq
415415
inputs.microvm.packages.${system}.microvm
416416
omnix
417+
parallel
417418
php
418419
phpunit
419420
phpPackages.composer

0 commit comments

Comments
 (0)