Skip to content

Commit f26580b

Browse files
committed
Fallback to testing depth 5
Signed-off-by: André Veríssimo <211358+averissimo@users.noreply.github.com>
1 parent 447a037 commit f26580b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build-check-install.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,11 +553,12 @@ jobs:
553553
commit_msg=$( git log -1 --pretty=%B )
554554
555555
# Set default TESTING_DEPTH
556-
td=$TESTING_DEPTH
557-
if [ -z "$td" ]
556+
WORKFLOW_TESTING_DEPTH=$TESTING_DEPTH
557+
if [ -z "$WORKFLOW_TESTING_DEPTH" ]
558558
then {
559559
echo "No TESTING_DEPTH default."
560560
TESTING_DEPTH=5
561+
WORKFLOW_TESTING_DEPTH=5
561562
echo "Setting TESTING_DEPTH=${TESTING_DEPTH}"
562563
echo "TESTING_DEPTH=${TESTING_DEPTH}" >> "$GITHUB_ENV"
563564
} fi
@@ -606,12 +607,11 @@ jobs:
606607
then {
607608
git restore $test_dir
608609
echo "Run all tests: Helpers modifications detected."
609-
TESTING_DEPTH="${td}";
610+
TESTING_DEPTH="${WORKFLOW_TESTING_DEPTH}";
610611
break;
611612
} else {
612613
sed -i 's/skip_if_too_deep(5)/skip_if_too_deep(3)/g' "$test_files"
613614
TESTING_DEPTH=3
614-
echo "TESTING_DEPTH=${TESTING_DEPTH}" >> "$GITHUB_ENV"
615615
echo "Testing with shinytest2 only for $test_files";
616616
} fi
617617
done

0 commit comments

Comments
 (0)