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

[E2E] Optimize testing matrix on `master` and `release` branches (#26638)

- run all EE tests against EE uberjar and only a small subset of OSS-specific tests against OSS uberjar
parent 3389ee80
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 45
needs: build
name: e2e-tests-${{ matrix.folder }}-${{ matrix.edition }}
name: e2e-tests-${{ matrix.folder }}${{ matrix.context }}-${{ matrix.edition }}
env:
MB_EDITION: ${{ matrix.edition }}
DISPLAY: ""
......@@ -58,7 +58,7 @@ jobs:
fail-fast: false
matrix:
java-version: [11]
edition: [oss, ee]
edition: [ee]
folder:
- "admin"
- "binning"
......@@ -79,6 +79,10 @@ jobs:
- "question"
- "sharing"
- "visualizations"
include:
- edition: oss
context: grep
java-version: 11
services:
maildev:
image: maildev/maildev:1.1.0
......@@ -143,8 +147,17 @@ jobs:
jar xf target/uberjar/metabase.jar version.properties
mv version.properties resources/
- name: Run and record Cypress tests on ${{ matrix.folder }} - Master Branch
if: github.ref == 'refs/heads/master' && env.RECORDING_ENABLED != null
- name: Run OSS-specific Cypress tests
if: matrix.edition == 'oss'
run: |
yarn run test-cypress-run \
--env grepTags=@OSS \
--spec './frontend/test/metabase/scenarios/**/*.cy.spec.js'
env:
TERM: xterm
- name: Run and record Cypress tests on ${{ matrix.folder }} - master branch
if: github.ref == 'refs/heads/master' && env.RECORDING_ENABLED != null && matrix.edition == 'ee'
run: |
yarn run test-cypress-run \
--folder ${{ matrix.folder }} \
......@@ -154,8 +167,8 @@ jobs:
env:
TERM: xterm
- name: Run Cypress tests on ${{ matrix.folder }}
if: ${{ github.ref != 'refs/heads/master' }}
- name: Run Cypress tests on ${{ matrix.folder }} - branches other than master
if: github.ref != 'refs/heads/master' && matrix.edition == 'ee'
run: |
yarn run test-cypress-run \
--folder ${{ matrix.folder }}
......@@ -166,7 +179,7 @@ jobs:
uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-artifacts-${{ matrix.folder }}-${{ matrix.edition }}
name: cypress-recording-${{ matrix.folder }}${{ matrix.context }}-${{ matrix.edition }}
path: |
./cypress
./logs/test.log
......
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