Skip to content

Commit 8202985

Browse files
Refactor integration test workflow to use new test-tools.sh script
- Replaced the previous inline test execution logic with a call to the new integration test script (test-tools.sh) for improved maintainability and clarity. - Ensured the test script is executable before running it.
1 parent 48442b9 commit 8202985

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

.github/workflows/it-test.yml

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -93,34 +93,8 @@ jobs:
9393
continue-on-error: true
9494
shell: bash
9595
run: |
96-
# Make the script executable
97-
chmod +x run-tool-tests.sh
98-
99-
# Initialize failed tools file
100-
rm -f /tmp/failed_tools.txt
101-
touch /tmp/failed_tools.txt
102-
103-
# Run tests for each tool directory
104-
for tool_dir in plugins/tools/*/; do
105-
tool_name=$(basename "$tool_dir")
106-
if [ -d "$tool_dir/test/src" ]; then
107-
echo "Running tests for $tool_name..."
108-
./run-tool-tests.sh "$tool_name" || {
109-
echo "❌ Test failed for $tool_name"
110-
echo "$tool_name" >> /tmp/failed_tools.txt
111-
}
112-
fi
113-
done
114-
115-
# Check if any tools failed
116-
if [ -s /tmp/failed_tools.txt ] && [ "$(wc -l < /tmp/failed_tools.txt)" -gt 0 ]; then
117-
echo -e "\n❌ The following tools failed their tests:"
118-
cat /tmp/failed_tools.txt
119-
echo "::error::Some tool tests failed. Please check the logs above for details."
120-
exit 1
121-
else
122-
echo "✅ All tool tests passed successfully!"
123-
fi
96+
chmod +x integration-tests/test-tools.sh
97+
./integration-tests/test-tools.sh
12498
12599
- name: Check test results
126100
if: always()

0 commit comments

Comments
 (0)