The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Setup TB local
Kiran K47915b3b538c
diff --git a/.github/workflows/playwright.yaml b/.github/workflows/playwright.yamlindex ba985cbb5f..8b9d91f717 100644--- a/.github/workflows/playwright.yaml+++ b/.github/workflows/playwright.yaml@@ -15,7 +15,7 @@ jobs:e2e:permissions:contents: read- timeout-minutes: 20+ timeout-minutes: 30runs-on: ubuntu-latestenv:@@ -32,8 +32,7 @@ jobs:E2E_PARTNER_EMAIL: "[email protected]"E2E_PARTNER_PASSWORD: "password"- TINYBIRD_API_KEY: "xx"- TINYBIRD_API_URL: "xx"+ # TINYBIRD_API_KEY / TINYBIRD_API_URL are set after Tinybird Local is ready# serverless-redis-http (SRH) — must match jobs.e2e.services.srh envSRH_TOKEN: "e2e_srh_token"@@ -106,6 +105,14 @@ jobs:ports:- 8079:80+ # Classic .datasource/.pipe project; COMPATIBILITY_MODE is required+ tinybird:+ image: tinybirdco/tinybird-local:latest+ env:+ COMPATIBILITY_MODE: "1"+ ports:+ - 7181:7181+steps:- name: Check out codeuses: actions/checkout@v4@@ -137,6 +144,36 @@ jobs:docker logs qstash-devexit 1+ - name: Configure Tinybird Local+ working-directory: packages/tinybird+ run: |+ TOKEN=""+ for i in $(seq 1 90); do+ TOKEN=$(curl -sf http://127.0.0.1:7181/tokens | jq -r '.workspace_admin_token // empty' || true)+ if [ -n "$TOKEN" ]; then+ echo "Tinybird Local is up"+ break+ fi+ sleep 2+ done+ if [ -z "$TOKEN" ]; then+ echo "Tinybird Local did not become ready on :7181"+ exit 1+ fi++ echo "::add-mask::$TOKEN"+ {+ echo "TINYBIRD_API_KEY<<EOF"+ echo "$TOKEN"+ echo "EOF"+ echo "TINYBIRD_API_URL=http://127.0.0.1:7181"+ } >> "$GITHUB_ENV"++ python3 -m venv /tmp/tinybird-cli+ /tmp/tinybird-cli/bin/pip install tinybird-cli+ /tmp/tinybird-cli/bin/tb --host http://127.0.0.1:7181 --token "$TOKEN" auth+ /tmp/tinybird-cli/bin/tb push --force --yes datasources/*.datasource+- name: Setup pnpmuses: pnpm/action-setup@v3