From c88b0bed3e06a7c51818eab991013d9c54ba1f7e Mon Sep 17 00:00:00 2001 From: stianst Date: Wed, 6 Sep 2023 11:23:12 +0200 Subject: [PATCH] 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 4800e88f8b..62f2b01895 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 57999d32f5..267a77771f 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