8 lines
179 B
Bash
8 lines
179 B
Bash
|
|
changedFiles="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
|
||
|
|
|
||
|
|
if [ $(echo "$changedFiles" | grep -c yarn.lock) -gt 0 ]; then
|
||
|
|
yarn install
|
||
|
|
fi
|
||
|
|
|
||
|
|
yarn test --silent
|