From 26d95214c950b819eae03ef15f8c642b25891a01 Mon Sep 17 00:00:00 2001 From: Diogo Mendes <diogo@metabase.com> Date: Tue, 7 Jun 2022 10:24:11 -0300 Subject: [PATCH] Record Cypress test runs only on master branch (#21299) * Adding conditional to GHA E2E Test * Adding missing ` * Running if as suggested * Update matrix * Correcting logic * Removing typo * Removing duplicated run * Updating to the new launch name * Update with master --- .github/workflows/e2e-main.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e-main.yml b/.github/workflows/e2e-main.yml index 0f32b90a0de..53636f6a2d3 100644 --- a/.github/workflows/e2e-main.yml +++ b/.github/workflows/e2e-main.yml @@ -127,7 +127,8 @@ jobs: jar xf target/uberjar/metabase.jar version.properties mv version.properties resources/ - - name: Run Cypress tests on ${{ matrix.folder }} + - name: Run Cypress tests on ${{ matrix.folder }} - Master Branch + if: ${{ github.ref == 'refs/heads/master' }} run: | yarn run test-cypress-run \ --folder ${{ matrix.folder }} \ @@ -137,6 +138,14 @@ jobs: env: TERM: xterm + - name: Run Cypress tests on ${{ matrix.folder }} + if: ${{ github.ref != 'refs/heads/master' }} + run: | + yarn run test-cypress-run \ + --folder ${{ matrix.folder }} + env: + TERM: xterm + - name: Upload Cypress recording upon failure uses: actions/upload-artifact@v2 if: failure() -- GitLab