Skip to content

fix(sdk): use neutral sync endpoints in sdk to prevent ad-blocker #35

fix(sdk): use neutral sync endpoints in sdk to prevent ad-blocker

fix(sdk): use neutral sync endpoints in sdk to prevent ad-blocker #35

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
deployments: write
pull-requests: write
statuses: write
jobs:
changes:
runs-on: ubuntu-latest
outputs:
web: ${{ steps.filter.outputs.web }}
api: ${{ steps.filter.outputs.api }}
sdk: ${{ steps.filter.outputs.sdk }}
docs: ${{ steps.filter.outputs.docs }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
web:
- 'apps/web/**'
- 'packages/ui/**'
api:
- 'apps/api/**'
- 'packages/db/**'
sdk:
- 'sdk/**'
- 'packages/evaluation-core/**'
docs:
- 'apps/docs/**'
test:
needs: changes
runs-on: ubuntu-latest
env:
DATABASE_URL: "postgresql://test:test@localhost:5432/test"
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
- name: Lint
run: pnpm lint
- name: Type Check
run: pnpm check-types
- name: Build All Packages
run: pnpm build
deploy-frontend:
needs: [test, changes]
if: github.ref == 'refs/heads/main' && (needs.changes.outputs.web == 'true' || needs.changes.outputs.sdk == 'true')
uses: ./.github/workflows/deploy-frontend.yml
secrets: inherit
deploy-api:
needs: [test, changes]
if: github.ref == 'refs/heads/main' && needs.changes.outputs.api == 'true'
uses: ./.github/workflows/deploy-api.yml
secrets: inherit
deploy-worker:
needs: [test, changes]
if: github.ref == 'refs/heads/main' && needs.changes.outputs.api == 'true'
uses: ./.github/workflows/deploy-worker.yml
secrets: inherit
deploy-docs:
needs: [test, changes]
if: github.ref == 'refs/heads/main' && (needs.changes.outputs.docs == 'true')
uses: ./.github/workflows/deploy-docs.yml
secrets: inherit