Skip to content

Commit 6b466d2

Browse files
committed
Add more parameters to the key.
1 parent b075b4e commit 6b466d2

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/scripts/extract-skipped-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22

33
# Extract skipped tests from PHPUnit JUnit XML output
4-
# Usage: extract-skipped-tests.sh <php> <db-type> <db-version> <multisite> <memcached> <test-groups>
4+
# Usage: extract-skipped-tests.sh <php> <db-type> <db-version> <multisite> <memcached> <test-groups> <os> <db-innovation> <tests-domain>
55

66
# Create config ID from parameters
7-
CONFIG_ID="php${1}_${2}${3}_${4}_${5}_${6}"
7+
CONFIG_ID="php${1}_${2}${3}_${4}_${5}_${6}_${7}_${8}_${9}"
88
CONFIG_ID="${CONFIG_ID//[^a-zA-Z0-9_-]/_}"
99

1010
echo "Extracting skipped tests for configuration: ${CONFIG_ID}"

.github/workflows/reusable-phpunit-tests-v3.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,14 +250,20 @@ jobs:
250250
MULTISITE: ${{ inputs.multisite && 'multisite' || 'single' }}
251251
MEMCACHED: ${{ inputs.memcached && 'memcached' || 'no-memcached' }}
252252
TEST_GROUPS: ${{ inputs.phpunit-test-groups && inputs.phpunit-test-groups || 'all-groups' }}
253+
OS: ${{ inputs.os }}
254+
DB_INNOVATION: ${{ inputs.db-innovation && 'innovation' || 'stable' }}
255+
TESTS_DOMAIN: ${{ inputs.tests-domain }}
253256
run: |
254257
CONFIG_OUTPUT=$(./.github/scripts/extract-skipped-tests.sh \
255258
"${PHP_VERSION}" \
256259
"${DB_TYPE}" \
257260
"${DB_VERSION}" \
258261
"${MULTISITE}" \
259262
"${MEMCACHED}" \
260-
"${TEST_GROUPS}")
263+
"${TEST_GROUPS}" \
264+
"${OS}" \
265+
"${DB_INNOVATION}" \
266+
"${TESTS_DOMAIN}")
261267
262268
# Extract CONFIG_ID from the script output
263269
CONFIG_ID=$(echo "$CONFIG_OUTPUT" | grep "CONFIG_ID=" | cut -d= -f2)

0 commit comments

Comments
 (0)