-
Notifications
You must be signed in to change notification settings - Fork 20
40 lines (37 loc) · 1.3 KB
/
pr_checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: E2E tests
on:
pull_request:
branches:
- develop # Run only on PRs to develop branch (temporary)
jobs:
wait-for-vercel: # Used instead of deployment_status to allow base branch filtering - it's possible to get base.ref only for PRs - otherwise results would be inconsistent
name: Waiting for Vercel
runs-on: ubuntu-latest
outputs:
preview-url: ${{ steps.waitForVercel.outputs.url }}
steps:
- name: Waiting for 200 from the Vercel Preview
uses: patrickedqvist/[email protected]
id: waitForVercel
with:
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 300
e2e-tests:
name: E2E tests
needs: wait-for-vercel
runs-on: ubuntu-latest
steps:
- name: Run E2E tests
uses: kubeshop/testkube-run-action@v1
with:
# Instance
url: https://demo.testkube.dev/results/v1
# Options
test: dashboard-e2e-tests
ref: ${{ github.head_ref }}
variables: |
BASE_URL="${{ needs.wait-for-vercel.outputs.preview-url }}"
API_URL="testkube-api-server.testkube.svc.cluster.local:8088/v1"
DASHBOARD_API_URL="https://demo.testkube.dev/results/v1"
BASIC_AUTH_USER="testkube-admin"
BASIC_AUTH_PASS="${{ secrets.TESTKUBE_DEVELOP_NGINX_PASS }}"