Repository navigation
feat: add Lynkr OpenClaw plugin with ClawHub publish workflow #106
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Web Tools Tests | |
| on: | |
| push: | |
| paths: | |
| - 'src/tools/web.js' | |
| - 'src/tools/web-client.js' | |
| - 'src/clients/retry.js' | |
| - 'src/config/index.js' | |
| - 'test/web-tools.test.js' | |
| - '.github/workflows/web-tools-tests.yml' | |
| pull_request: | |
| paths: | |
| - 'src/tools/web.js' | |
| - 'src/tools/web-client.js' | |
| - 'src/clients/retry.js' | |
| - 'src/config/index.js' | |
| - 'test/web-tools.test.js' | |
| jobs: | |
| web-tools-test: | |
| name: Web Tools Test Suite | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run web tools tests | |
| run: | | |
| DATABRICKS_API_KEY=test-key DATABRICKS_API_BASE=http://test.com \ | |
| node --test test/web-tools.test.js | |
| - name: Test results summary | |
| if: always() | |
| run: | | |
| echo "## Web Tools Test Results" >> $GITHUB_STEP_SUMMARY | |
| echo "✅ All web tools tests passed!" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "### Coverage:" >> $GITHUB_STEP_SUMMARY | |
| echo "- HTML extraction (9 tests)" >> $GITHUB_STEP_SUMMARY | |
| echo "- HTTP keep-alive agent (2 tests)" >> $GITHUB_STEP_SUMMARY | |
| echo "- Retry logic with exponential backoff (2 tests)" >> $GITHUB_STEP_SUMMARY | |
| echo "- Configuration management (3 tests)" >> $GITHUB_STEP_SUMMARY | |
| echo "- Error handling (1 test)" >> $GITHUB_STEP_SUMMARY | |
| echo "- Performance validation (1 test)" >> $GITHUB_STEP_SUMMARY | |
| echo "- Body preview configuration (1 test)" >> $GITHUB_STEP_SUMMARY |