We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
utils
1 parent d476cab commit 3d231b8Copy full SHA for 3d231b8
1 file changed
.github/workflows/ci.yml
@@ -118,17 +118,16 @@ jobs:
118
changed_paths=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }})
119
120
# run everything?
121
- if echo "$changed_paths" | grep -qE '^(package\.json|\.github/workflows/ci\.yml)$'; then
+ if echo "$changed_paths" | grep -qE '^(package\.json|\.github/workflows/ci\.yml|utils/)$'; then
122
npm run test --workspaces
123
exit 0
124
fi
125
126
# run for specific workspace(s)
127
npm run test $(
128
echo "$changed_paths" \
129
- | awk -F/ '
130
- /^packages\// { print "--workspace=" $1 "/" $2 }
131
- /^utils\// { print "--workspace=utils" }
132
- ' \
+ | grep '^recipes/'
+ | cut -d/ -f1,2
133
| sort -u
+ | sed 's/^/--workspace=/'
134
)
0 commit comments