diff --git a/.github/workflows/percy-demo-tests.yml b/.github/workflows/percy-demo-tests.yml index e29f70b9a..be05cda11 100644 --- a/.github/workflows/percy-demo-tests.yml +++ b/.github/workflows/percy-demo-tests.yml @@ -31,7 +31,7 @@ jobs: cypress-run-tests: runs-on: ubuntu-latest env: - TEST_KIND: ${{ github.event.inputs.testsKind || github.event.client_payload.testsKind }} + TEST_KIND: ${{ github.event.inputs.testsKind || github.event.client_payload.testsKind || "all"}} container: cypress/browsers:node18.12.0-chrome106-ff106 steps: @@ -66,7 +66,7 @@ jobs: - name: Cypress run test percy if: contains(fromJSON('["percy", "all"]'), env.TEST_KIND) continue-on-error: true - uses: cypress-io/github-action@v4 + uses: cypress-io/github-action@v5 env: API_URI: ${{ steps.get-env-urls.outputs.API_URL }} APP_MOUNT_URI: ${{ secrets.APP_MOUNT_URI }} @@ -84,7 +84,7 @@ jobs: - name: Cypress run test functional if: contains(fromJSON('["functional", "all"]'), env.TEST_KIND) continue-on-error: true - uses: cypress-io/github-action@v4 + uses: cypress-io/github-action@v5 env: API_URI: ${{ steps.get-env-urls.outputs.API_URL }} APP_MOUNT_URI: ${{ secrets.APP_MOUNT_URI }} diff --git a/.github/workflows/tests-nightly.yml b/.github/workflows/tests-nightly.yml index 0a38af208..5fcb5b4e9 100644 --- a/.github/workflows/tests-nightly.yml +++ b/.github/workflows/tests-nightly.yml @@ -95,6 +95,7 @@ jobs: runs-on: ubuntu-latest env: NODE_OPTIONS: "--max_old_space_size=4096" + GREP_TAGS: ${{ github.event.inputs.tags || "@allEnv"}} outputs: status: ${{ steps.cypress.outcome }} container: cypress/browsers:node18.12.0-chrome106-ff106 @@ -125,11 +126,18 @@ jobs: with: node-version-file: '.nvmrc' + - name: Cypress install + id: cypress-install + if: ${{ github.event.inputs.tests != 'Critical' && github.event_name != 'repository_dispatch'}} + uses: cypress-io/github-action@v5 + with: + runTests: false + - name: Cypress run id: cypress continue-on-error: true if: ${{ github.event.inputs.tests != 'Critical' && github.event_name != 'repository_dispatch'}} - uses: cypress-io/github-action@v4 + uses: cypress-io/github-action@v5 env: API_URI: ${{ steps.get-env-uri.outputs.ENV_URI }}graphql/ APP_MOUNT_URI: ${{ secrets.APP_MOUNT_URI }} @@ -142,14 +150,15 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CYPRESS_mailHogUrl: ${{ secrets.CYPRESS_MAILHOG }} COMMIT_INFO_MESSAGE: All tests triggered via ${{ github.event_name}} on ${{ steps.get-env-uri.outputs.ENV_URI }} - CYPRESS_grepTags: ${{ github.event.inputs.tags }} + CYPRESS_grepTags: ${{ env.GREP_TAGS }} STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }} STRIPE_PUBLIC_KEY: ${{ secrets.STRIPE_PUBLIC_KEY }} with: + install: false parallel: true group: 'UI - Chrome' record: true - tag: ${{ steps.get-env-uri.outputs.ENV_URI }},${{ github.event.inputs.tags }} + tag: ${{ steps.get-env-uri.outputs.ENV_URI }},${{ env.GREP_TAGS }} get-environment-variables: if: ${{ github.event_name == 'repository_dispatch' && (github.event.client_payload.environment == 'SANDBOX' || github.event.client_payload.environment == 'STAGING')}} @@ -222,11 +231,18 @@ jobs: }else{ return "@stable" } - + + - name: Cypress install + id: cypress-install + continue-on-error: true + uses: cypress-io/github-action@v5 + with: + runTests: false + - name: Cypress run - automatically id: cypress continue-on-error: true - uses: cypress-io/github-action@v4 + uses: cypress-io/github-action@v5 env: API_URI: ${{ needs.get-environment-variables.outputs.url }}graphql/ APP_MOUNT_URI: ${{ secrets.APP_MOUNT_URI }} @@ -243,6 +259,7 @@ jobs: COMMIT_INFO_MESSAGE: Triggered via release - ${{github.event.client_payload.project}} ${{github.event.client_payload.version}}, ${{github.event.client_payload.pullRequestUrl}} CYPRESS_grepTags: ${{steps.set-tag-for-tests.outputs.result}} with: + install: false parallel: true group: 'UI - Chrome' record: true @@ -298,4 +315,4 @@ jobs: JOB_TITLE: "Test release workflow - ${{github.event.client_payload.project}} ${{github.event.client_payload.version}}" JOB_KIND: "release tests" run: | - python3 ./.github/workflows/notify/notify-slack.py \ No newline at end of file + python3 .github/workflows/notify/notify-slack.py \ No newline at end of file