1
name: Applitools Cypress
9
runs-on: "ubuntu-22.04"
11
has-secrets: ${{ steps.check.outputs.has-secrets }}
13
- name: "Check for secrets"
17
if [ -n "${{ (secrets.APPLITOOLS_API_KEY != '' && secrets.APPLITOOLS_API_KEY != '') || '' }}" ]; then
18
echo "has-secrets=1" >> "$GITHUB_OUTPUT"
23
if: needs.config.outputs.has-secrets
31
SUPERSET_ENV: development
32
SUPERSET_CONFIG: tests.integration_tests.superset_test_config
33
SUPERSET__SQLALCHEMY_DATABASE_URI: postgresql+psycopg2://superset:superset@127.0.0.1:15432/superset
34
PYTHONPATH: ${{ github.workspace }}
36
GITHUB_TOKEN: ${{ github.token }}
37
APPLITOOLS_APP_NAME: Superset
38
APPLITOOLS_API_KEY: ${{ secrets.APPLITOOLS_API_KEY }}
39
APPLITOOLS_BATCH_ID: ${{ github.sha }}
40
APPLITOOLS_BATCH_NAME: Superset Cypress
43
image: postgres:15-alpine
45
POSTGRES_USER: superset
46
POSTGRES_PASSWORD: superset
54
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
55
uses: actions/checkout@v4
57
persist-credentials: false
61
uses: ./.github/actions/setup-backend/
62
- name: Import test data
63
uses: ./.github/actions/cached-dependencies
67
uses: actions/setup-node@v4
69
node-version: ${{ matrix.node }}
70
- name: Install npm dependencies
71
uses: ./.github/actions/cached-dependencies
74
- name: Build javascript packages
75
uses: ./.github/actions/cached-dependencies
77
run: build-instrumented-assets
78
- name: Setup Postgres
79
if: steps.check.outcome == 'failure'
80
uses: ./.github/actions/cached-dependencies
83
- name: Install cypress
84
uses: ./.github/actions/cached-dependencies
88
uses: ./.github/actions/cached-dependencies
90
CYPRESS_BROWSER: ${{ matrix.browser }}
92
run: cypress-run-applitools