Skip to content

Commit 48dcd52

Browse files
committed
Simplify a bit more
1 parent 3a58352 commit 48dcd52

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -526,15 +526,12 @@ jobs:
526526
# Set working directory where the git repo is
527527
cd ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}
528528
529-
530-
test_all=$(git show -s --pretty=%B | grep -F "[run-all-tests]")
529+
test_all=$(git show -s --pretty=%B | grep -F "[run-all-tests]" )
530+
test_dir="tests/testthat/"
531531
532532
# Get the list of R files that have changed
533533
# https://github.com/cloudnativeto/envoy/blob/de67446fa8af973761bb4716f5143d73643baf8b/.github/workflows/get_build_targets.sh_bak#L9
534-
files=$(git diff --name-only HEAD FETCH_HEAD -- tests/* R/*.R)
535-
536-
# Base directories
537-
test_dir="tests/testthat/"
534+
files=$(git diff --name-only HEAD FETCH_HEAD -- $test_dir R/*.R)
538535
539536
# Loop through each modified file and determine which tests to run
540537
for file in $files; do

0 commit comments

Comments
 (0)