-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (53 loc) · 1.83 KB
/
cypress.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: frontend e2e tests
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
tilt-ci:
name: manual generation / execute via tilt and cypress
runs-on: ubuntu-latest
steps:
- uses: docker/login-action@v3
with:
registry: gcr.io
username: _json_key
password: ${{ secrets.GCR_JSON_KEY }}
- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v8
- uses: actions/checkout@v4
- uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GOOGLE_CREDENTIALS }}"
- name: build frontend
run: nix develop -c make build-frontend
- name: build backend
run: nix develop -c make build-for-tests
- name: sync dataform-branch
run: nix develop -c make push-dataform-branch
env:
DATAFORM_BRANCH: "gha-dataform"
- name: keep tilt running
run: nix develop -c make tilt-in-ci
env:
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}
TF_VAR_sa_creds: ${{ secrets.GOOGLE_SA_BASE64 }}
SA_CREDS_BASE64: ${{ secrets.GOOGLE_SA_BASE64 }}
SUMSUB_KEY: ${{ secrets.SUMSUB_KEY }}
SUMSUB_SECRET: ${{ secrets.SUMSUB_SECRET }}
TF_VAR_name_prefix: "gha"
- name: system info
run: |
free -h
df -h
ps aux | grep tilt
nix develop -c tilt get uiresources -o yaml
- name: run cypress tests
uses: nick-fields/retry@v3
with:
timeout_minutes: 50
max_attempts: 3
command: nix develop -c make test-cypress-in-ci-through-browserstack
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}