From b15cd4e17cec9a2d2a05d67d828cd9d048afaaff Mon Sep 17 00:00:00 2001 From: Akash Jain <15995028+akash-jain-10@users.noreply.github.com> Date: Thu, 29 Feb 2024 12:58:40 +0530 Subject: [PATCH] fix(CI): Use the standard cypress GHA way with environments (#15399) --- .../workflows/cypress-integration-tests-mysql-pr.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cypress-integration-tests-mysql-pr.yml b/.github/workflows/cypress-integration-tests-mysql-pr.yml index 6b44160b6f6..67312401170 100644 --- a/.github/workflows/cypress-integration-tests-mysql-pr.yml +++ b/.github/workflows/cypress-integration-tests-mysql-pr.yml @@ -143,14 +143,15 @@ jobs: install-command: yarn --frozen-lockfile --silent --ignore-scripts working-directory: openmetadata-ui/src/main/resources/ui/ wait-on: "http://localhost:8585" - command: | - npx cypress run --config-file=cypress.config.ts \ - --env grepTags="${{ steps.getCypresse2eLabels.outputs.e2eLabels }}",grepFilterSpecs=true \ - --group cypress-ci-mysql-pr-${{ github.run_id }}-${{github.run_attempt}} \ - --parallel --record --browser chrome + record: true + parallel: true + group: cypress-ci-mysql-pr-${{ github.run_id }}-${{github.run_attempt}} + browser: chrome env: CYPRESS_BASE_URL: "http://localhost:8585" CYPRESS_RECORD_KEY: ${{ steps.cypress-project-id.outputs.CYPRESS_RECORD_KEY }} + CYPRESS_grepTags: ${{ steps.getCypresse2eLabels.outputs.e2eLabels }} + CYPRESS_grepFilterSpecs: "true" CYPRESS_SNOWFLAKE_USERNAME: ${{ secrets.TEST_SNOWFLAKE_USERNAME }} CYPRESS_SNOWFLAKE_PASSWORD: ${{ secrets.TEST_SNOWFLAKE_PASSWORD }} CYPRESS_SNOWFLAKE_ACCOUNT: ${{ secrets.TEST_SNOWFLAKE_ACCOUNT }}