Skip to content

Commit 3d231b8

Browse files
include utils in "run everything"
1 parent d476cab commit 3d231b8

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
@@ -118,17 +118,16 @@ jobs:
118118
changed_paths=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }})
119119
120120
# run everything?
121-
if echo "$changed_paths" | grep -qE '^(package\.json|\.github/workflows/ci\.yml)$'; then
121+
if echo "$changed_paths" | grep -qE '^(package\.json|\.github/workflows/ci\.yml|utils/)$'; then
122122
npm run test --workspaces
123123
exit 0
124124
fi
125125
126126
# run for specific workspace(s)
127127
npm run test $(
128128
echo "$changed_paths" \
129-
| awk -F/ '
130-
/^packages\// { print "--workspace=" $1 "/" $2 }
131-
/^utils\// { print "--workspace=utils" }
132-
' \
129+
| grep '^recipes/'
130+
| cut -d/ -f1,2
133131
| sort -u
132+
| sed 's/^/--workspace=/'
134133
)

0 commit comments

Comments
 (0)