chore: remove deprecated cleanup scripts and batch files, streamline … #17
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: AgentBridge Development | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| workflow_dispatch: | |
| jobs: | |
| lint-js: | |
| name: Lint JavaScript | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run linter | |
| run: npm run lint:js || true | |
| test-js: | |
| name: Test JavaScript | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run tests | |
| run: npm run test:js | |
| - name: Upload coverage reports | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| directory: ./coverage/ | |
| fail_ci_if_error: false | |
| build-js: | |
| name: Build JavaScript | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install @types/uuid | |
| run: npm install --save-dev @types/uuid --workspace=@agentbridge/core | |
| - name: Build packages | |
| run: npm run build:js || true | |
| lint-flutter: | |
| name: Lint Flutter | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: '3.13.0' | |
| channel: 'stable' | |
| - name: Create test directory if needed | |
| run: mkdir -p test | |
| working-directory: ./packages/frameworks/flutter | |
| - name: Create placeholder test file if needed | |
| run: | | |
| if [ ! -f "test/widget_test.dart" ]; then | |
| echo 'import "package:flutter_test/flutter_test.dart"; | |
| void main() { | |
| test("Placeholder test", () { | |
| expect(true, true); | |
| }); | |
| }' > test/widget_test.dart | |
| fi | |
| working-directory: ./packages/frameworks/flutter | |
| - name: Install dependencies | |
| run: flutter pub get | |
| working-directory: ./packages/frameworks/flutter | |
| - name: Run Flutter analyze | |
| run: flutter analyze || true | |
| working-directory: ./packages/frameworks/flutter | |
| test-flutter: | |
| name: Test Flutter | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: '3.13.0' | |
| channel: 'stable' | |
| - name: Create test directory if needed | |
| run: mkdir -p test | |
| working-directory: ./packages/frameworks/flutter | |
| - name: Create placeholder test file if needed | |
| run: | | |
| if [ ! -f "test/widget_test.dart" ]; then | |
| echo 'import "package:flutter_test/flutter_test.dart"; | |
| void main() { | |
| test("Placeholder test", () { | |
| expect(true, true); | |
| }); | |
| }' > test/widget_test.dart | |
| fi | |
| working-directory: ./packages/frameworks/flutter | |
| - name: Install dependencies | |
| run: flutter pub get | |
| working-directory: ./packages/frameworks/flutter | |
| - name: Run Flutter tests | |
| run: flutter test --coverage || true | |
| working-directory: ./packages/frameworks/flutter | |
| - name: Upload coverage reports | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| file: ./packages/frameworks/flutter/coverage/lcov.info | |
| fail_ci_if_error: false | |
| docs: | |
| name: Build Documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install mkdocs mkdocs-material pymdown-extensions mkdocs-mermaid2-plugin | |
| - name: Build docs | |
| run: mkdocs build --strict | |
| - name: Upload documentation site | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: documentation-site | |
| path: site/ |