Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Add e2e.yaml workflow for running end-to-end tests

Kiran K614aa643855d
diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml
new file mode 100644
index 0000000000..f0862d2590
--- /dev/null
+++ b/.github/workflows/e2e.yaml
@@ -0,0 +1,36 @@
+name: E2E Tests
+
+on:
+ push:
+ branches:
+ - main
+ - integration-tests
+ pull_request:
+ branches:
+ - main
+ workflow_dispatch:
+ deployment_status:
+
+jobs:
+ run-e2es:
+ timeout-minutes: 30
+ if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out code
+ uses: actions/checkout@v2
+
+ - name: Setup pnpm
+ uses: pnpm/action-setup@v3
+ with:
+ version: 8
+
+ - name: Install dependencies
+ run: pnpm install
+
+ - name: Run tests
+ working-directory: apps/web
+ env:
+ API_BASE_URL: https://preview.dub.co
+ DATABASE_URL: ${{ secrets.DATABASE_URL }}
+ run: pnpm test