Skip to content
Snippets Groups Projects
Unverified Commit 64178eb5 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Record Cypress runs using deploysentinel on master only (#26625)

parent 03373a33
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,6 @@ jobs:
MB_SNOWPLOW_AVAILABLE: true
MB_SNOWPLOW_URL: "http://localhost:9090" # Snowplow micro
RECORDING_ENABLED: ${{ secrets.CURRENTS_KEY }}
CYPRESS_DEPLOYSENTINEL_KEY: ${{ secrets.CYPRESS_DEPLOYSENTINEL_KEY }}
ELECTRON_EXTRA_LAUNCH_ARGS: '--remote-debugging-port=40500' # deploysentinel
strategy:
fail-fast: false
......@@ -119,6 +118,10 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Set conditional ENVs
if: github.ref == 'refs/heads/master'
run: |
echo "CYPRESS_DEPLOYSENTINEL_KEY=${{ secrets.CYPRESS_DEPLOYSENTINEL_KEY }}" >> $GITHUB_ENV
- name: Prepare front-end environment
uses: ./.github/actions/prepare-frontend
- name: Prepare JDK ${{ matrix.java-version }}
......@@ -140,7 +143,7 @@ jobs:
jar xf target/uberjar/metabase.jar version.properties
mv version.properties resources/
- name: Run Cypress tests on ${{ matrix.folder }} - Master Branch
- name: Run and record Cypress tests on ${{ matrix.folder }} - Master Branch
if: github.ref == 'refs/heads/master' && env.RECORDING_ENABLED != null
run: |
yarn run test-cypress-run \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment