Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/build-check-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,6 @@ jobs:
uses: tj-actions/changed-files@a284dc1814e3fd07f2e34267fc8f81227ed29fb8
with:
path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}
base_sha: "main"
files: |
tests/testthat/*.R
R/*.R
Expand All @@ -553,11 +552,12 @@ jobs:
commit_msg=$( git log -1 --pretty=%B )

# Set default TESTING_DEPTH
td=$TESTING_DEPTH
if [ -z "$td" ]
WORKFLOW_TESTING_DEPTH=$TESTING_DEPTH
if [ -z "$WORKFLOW_TESTING_DEPTH" ]
then {
echo "No TESTING_DEPTH default."
TESTING_DEPTH=5
WORKFLOW_TESTING_DEPTH=5
echo "Setting TESTING_DEPTH=${TESTING_DEPTH}"
echo "TESTING_DEPTH=${TESTING_DEPTH}" >> "$GITHUB_ENV"
} fi
Expand Down Expand Up @@ -606,12 +606,11 @@ jobs:
then {
git restore $test_dir
echo "Run all tests: Helpers modifications detected."
TESTING_DEPTH="${td}";
TESTING_DEPTH="${WORKFLOW_TESTING_DEPTH}";
break;
} else {
sed -i 's/skip_if_too_deep(5)/skip_if_too_deep(3)/g' "$test_files"
TESTING_DEPTH=3
echo "TESTING_DEPTH=${TESTING_DEPTH}" >> "$GITHUB_ENV"
echo "Testing with shinytest2 only for $test_files";
} fi
done
Expand Down
Loading