feat: Add LiteLLM and OpenAI-compatible endpoint support #62
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: CI | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| FIGMA_ACCESS_TOKEN: ${{ secrets.FIGMA_ACCESS_TOKEN }} | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.x' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run unit tests | |
| run: npm test | |
| - name: Run Chakra E2E tests | |
| if: github.ref == 'refs/heads/main' && env.FIGMA_ACCESS_TOKEN != '' && env.ANTHROPIC_API_KEY != '' | |
| run: | | |
| if [ ! -f fixtures/chakra-ui/package.json ]; then | |
| echo "Skipping Chakra E2E: fixtures/chakra-ui not present after checkout" | |
| exit 0 | |
| fi | |
| SUPERCONNECT_E2E_VERBOSE=1 CHAKRA_E2E_KEEP=1 npm run test:e2e:chakra | |
| - name: Run ZapUI E2E tests | |
| if: github.ref == 'refs/heads/main' && env.FIGMA_ACCESS_TOKEN != '' && env.ANTHROPIC_API_KEY != '' | |
| run: | | |
| if [ ! -f fixtures/zapui/package.json ]; then | |
| echo "Skipping ZapUI E2E: fixtures/zapui not present after checkout" | |
| exit 0 | |
| fi | |
| SUPERCONNECT_E2E_VERBOSE=1 ZAPUI_E2E_KEEP=1 npm run test:e2e:zapui | |
| - name: Upload Chakra E2E artifacts | |
| if: github.ref == 'refs/heads/main' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: chakra-e2e-artifacts | |
| path: | | |
| /tmp/chakra-e2e-* | |
| if-no-files-found: ignore | |
| retention-days: 14 | |
| - name: Upload ZapUI E2E artifacts | |
| if: github.ref == 'refs/heads/main' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: zapui-e2e-artifacts | |
| path: | | |
| /tmp/zapui-e2e-* | |
| if-no-files-found: ignore | |
| retention-days: 14 |