ci: automatic manual generation #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |