Skip to content

Commit 642a189

Browse files
committed
Make it more general and improve logging
1 parent 65e160d commit 642a189

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,13 +521,13 @@ jobs:
521521
key: additional-caches-${{ runner.os }}
522522

523523
- name: Check only affected modules 🎯
524-
if: ${{ inputs.fast-tests }} != 'true' && startsWith(${{ github.event.repository.name }}, 'teal.') && github.event_name == 'pull_request'
524+
if: ${{ inputs.fast-tests }} == 'true' && github.event_name == 'pull_request'
525525
run: |
526526
# Set working directory where the git repo is
527527
cd ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}
528528
529529
530-
test_all=$(git log -1 --pretty=%B | grep -F " [run-all-tests] ")
530+
test_all=$(git show -s --pretty=%B | grep -F "[run-all-tests]")
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
@@ -564,6 +564,7 @@ jobs:
564564
# R file without corresponding test file: reset the testing depth
565565
if [ -n "$helper_modified" ] || [ -n "$test_all" ];
566566
then {
567+
echo "Skip step or helper modifications detected."
567568
TESTING_DEPTH=$td;
568569
} fi
569570
done

0 commit comments

Comments
 (0)