Skip to content

Commit

Permalink
Infrastructure: Trigger regression testing for lock file changes (pull
Browse files Browse the repository at this point in the history
…#1516)

If a PR changes only a lock file, run regression testing.
  • Loading branch information
nschonni authored Sep 8, 2020
1 parent 8bc72c9 commit c57c012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/regression-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ TEST_INFRA=$(git diff --name-only $COMMIT_RANGE | grep -oP 'test/(util|index)')
EXAMPLE_DIRS=$(git diff --name-only $COMMIT_RANGE | grep -oP 'examples/\K[\w-]+(?=/)' | uniq)
EXAMPLE_INFRA=$(echo "$EXAMPLE_DIRS" | grep -P '^(js|css)$')

PACKAGE_UPDATE=$(git diff --name-only $COMMIT_RANGE | grep -P '(package\.json)')
PACKAGE_UPDATE=$(git diff --name-only $COMMIT_RANGE | grep -P 'package(-lock)?\.json')

if [[ $TEST_INFRA || $EXAMPLE_INFRA || $PACKAGE_UPDATE ]]
then
Expand Down

0 comments on commit c57c012

Please sign in to comment.