From b1a895810bbe81b96277951401984521269ea552 Mon Sep 17 00:00:00 2001 From: stianst Date: Wed, 6 Sep 2023 11:23:12 +0200 Subject: [PATCH 1/2] Execute store tests if relevant tests have been updated Closes #23001 --- .github/actions/conditional/conditional.sh | 4 ++++ .github/actions/conditional/conditions | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.github/actions/conditional/conditional.sh b/.github/actions/conditional/conditional.sh index 4800e88f8b4..62f2b018952 100755 --- a/.github/actions/conditional/conditional.sh +++ b/.github/actions/conditional/conditional.sh @@ -38,6 +38,10 @@ for C in "${CONDITIONS[@]}"; do if [ "$IS_PR" == true ]; then PATTERN="${CONDITION[0]}" + if [[ "$PATTERN" =~ testsuite::* ]]; then + PATTERN=$(cat testsuite/integration-arquillian/tests/base/testsuites/database-suite | grep -v -e '^[[:space:]]*$' | grep -v '^$' | sed -z 's/\n$//g' | sed -z 's/\n/|/g' | sed 's/\./\//g' | sed 's/\*\*/*/g') + fi + # Convert pattern to regex REGEX="$PATTERN" diff --git a/.github/actions/conditional/conditions b/.github/actions/conditional/conditions index 57999d32f5d..267a77771fe 100644 --- a/.github/actions/conditional/conditions +++ b/.github/actions/conditional/conditions @@ -26,3 +26,5 @@ js/ js *.java codeql-java themes/ codeql-themes + +testsuite::database-suite ci-store From 4bcb7eecaa4216ac947788ff6fcd7c65739bd7c4 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Wed, 6 Sep 2023 12:27:53 +0200 Subject: [PATCH 2/2] Update .github/actions/conditional/conditional.sh --- .github/actions/conditional/conditional.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/conditional/conditional.sh b/.github/actions/conditional/conditional.sh index 62f2b018952..7e3166745d0 100755 --- a/.github/actions/conditional/conditional.sh +++ b/.github/actions/conditional/conditional.sh @@ -39,7 +39,7 @@ for C in "${CONDITIONS[@]}"; do PATTERN="${CONDITION[0]}" if [[ "$PATTERN" =~ testsuite::* ]]; then - PATTERN=$(cat testsuite/integration-arquillian/tests/base/testsuites/database-suite | grep -v -e '^[[:space:]]*$' | grep -v '^$' | sed -z 's/\n$//g' | sed -z 's/\n/|/g' | sed 's/\./\//g' | sed 's/\*\*/*/g') + PATTERN=$(cat testsuite/integration-arquillian/tests/base/testsuites/database-suite | grep -v -e '^[[:space:]]*$' | sed -z 's/\n$//g' | sed -z 's/\n/|/g' | sed 's/\./\//g' | sed 's/\*\*/*/g') fi # Convert pattern to regex