Skip to content

Commit 64f2d3a

Browse files
committed
build: compile native add-ons in affected tests workflow
1 parent fd96f27 commit 64f2d3a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/scripts/run_affected_tests

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,13 @@ main() {
143143
directories="${directories} ${required_by}"
144144
fi
145145

146+
# Build native add-ons for affected packages (if applicable):
147+
for pkg in ${directories}; do
148+
if [ -f "lib/node_modules/@stdlib/${pkg}/binding.gyp" ]; then
149+
NODE_ADDONS_PATTERN="${pkg}" make install-node-addons
150+
fi
151+
done
152+
146153
# Find all test files in package directories:
147154
files=$(find ${directories} -maxdepth 2 -wholename '**/test/test*.js' | grep -v '/fixtures/' | sort -u | tr '\n' ' ') || true
148155

0 commit comments

Comments
 (0)