Skip to content

Commit 067c2c6

Browse files
include utils in "run everything"
1 parent fe83f1a commit 067c2c6

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,16 @@ jobs:
114114
changed_paths=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }})
115115
116116
# run everything?
117-
if echo "$changed_paths" | grep -qE '^(package\.json|\.github/workflows/ci\.yml)$'; then
117+
if echo "$changed_paths" | grep -qE '^(package\.json|\.github/workflows/ci\.yml|utils/)$'; then
118118
npm run test --workspaces
119119
exit 0
120120
fi
121121
122122
# run for specific workspace(s)
123123
npm run test $(
124124
echo "$changed_paths" \
125-
| awk -F/ '
126-
/^packages\// { print "--workspace=" $1 "/" $2 }
127-
/^utils\// { print "--workspace=utils" }
128-
' \
125+
| grep '^recipes/'
126+
| cut -d/ -f1,2
129127
| sort -u
128+
| sed 's/^/--workspace=/'
130129
)

0 commit comments

Comments
 (0)