Skip to content

Commit afb3b2f

Browse files
committed
Update matrix
1 parent 2f506c5 commit afb3b2f

2 files changed

Lines changed: 30 additions & 4 deletions

File tree

‎.github/workflows/testing.yml‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
matrix:
2020
php: ['7.2', '8.5']
2121
wp: ['latest', 'trunk']
22-
dbtype: ['mysql', 'sqlite']
22+
dbtype: ['mysql', 'sqlite', 'mariadb']
2323
object_cache: ['none', 'sqlite']
2424
use-phar: [false, true]
2525
os: ['ubuntu-22.04', 'macos-latest', 'windows-latest']
@@ -101,7 +101,24 @@ jobs:
101101
- os: windows-latest
102102
object_cache: sqlite
103103

104+
# Skip Windows tests for db-command to to environment configuration issues with SQLite.
105+
- os: windows-latest
106+
test-package: db-command
104107

108+
# Limit MariaDB runs to php: 8.5, wp: trunk, os: ubuntu-22.04, object_cache: none, use-phar: false
109+
- dbtype: mariadb
110+
php: '7.2'
111+
- dbtype: mariadb
112+
wp: latest
113+
- dbtype: mariadb
114+
os: macos-latest
115+
- dbtype: mariadb
116+
os: windows-latest
117+
- dbtype: mariadb
118+
object_cache: sqlite
119+
- dbtype: mariadb
120+
use-phar: true
121+
105122
uses: ./.github/workflows/reusable-testing.yml
106123
with:
107124
test-package: ${{ matrix.test-package }}

‎bin/test-source‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ if [ -z "$BUILD_DIR" ]; then
2020
export BUILD_DIR="${GITHUB_WORKSPACE:-$(pwd)}"
2121
fi
2222

23+
if [[ "$OS" == "Windows_NT" ]]; then
24+
export BUILD_DIR=$(cygpath -w "$BUILD_DIR")
25+
fi
26+
2327
if [ -z "$TEST_PACKAGE" -o "$TEST_PACKAGE" == "none" ]; then
2428
echo "Skipping feature tests completely."
2529
exit 0
@@ -43,13 +47,18 @@ for REPO in $REPOS; do
4347

4448
echo "Testing package $REPO..."
4549

46-
BEHAT_TAGS=$(BEHAT_FEATURES_FOLDER=${BUILD_DIR}/vendor/${REPO}/features php ${BUILD_DIR}/vendor/wp-cli/wp-cli-tests/utils/behat-tags.php)
50+
FEATURES_FOLDER="${BUILD_DIR}/vendor/${REPO}/features"
51+
if [[ "$OS" == "Windows_NT" ]]; then
52+
FEATURES_FOLDER=$(cygpath -w "$FEATURES_FOLDER")
53+
fi
54+
55+
BEHAT_TAGS=$(BEHAT_FEATURES_FOLDER="$FEATURES_FOLDER" php "${BUILD_DIR}/vendor/wp-cli/wp-cli-tests/utils/behat-tags.php")
4756
echo "Behat Tags: $BEHAT_TAGS"
4857

4958
set +e
50-
"${BUILD_DIR}/vendor/bin/behat" --format progress $BEHAT_TAGS --strict --suite $REPO
59+
"${BUILD_DIR}/vendor/bin/behat" --format progress $BEHAT_TAGS --strict --suite $REPO
5160
if [ $? -ne 0 ]; then
52-
"${BUILD_DIR}/vendor/bin/behat" --format progress $BEHAT_TAGS --strict --suite $REPO --rerun
61+
"${BUILD_DIR}/vendor/bin/behat" --format progress $BEHAT_TAGS --strict --suite $REPO --rerun
5362
if [ $? -ne 0 ]; then
5463
FAILED_PACKAGES="$FAILED_PACKAGES ${RELEASE}:${REPO}"
5564
fi

0 commit comments

Comments
 (0)