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

Run Percy (visual regression) sanity check on PRs using GHA (#23334)

* Run Percy (visual regression) sanity check on PRs using GHA

* Run visual tests only once

* Run Percy as an individual job

* Fix whitespace error

* Update name of the job
parent 62fe32f1
No related branches found
No related tags found
Loading
......@@ -115,7 +115,7 @@ jobs:
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
- name: Prepare cypress environment
- name: Prepare Cypress environment
uses: ./.github/actions/prepare-cypress
- name: Run Snowplow micro
uses: ./.github/actions/run-snowplow-micro
......@@ -153,3 +153,47 @@ jobs:
./cypress
./logs/test.log
if-no-files-found: ignore
visual-regression-tests:
runs-on: ubuntu-20.04
timeout-minutes: 30
needs: build
name: percy-tests-sanity-check-${{ matrix.edition }}
env:
MB_EDITION: ${{ matrix.edition }}
ENTERPRISE_TOKEN: ${{ secrets.ENTERPRISE_TOKEN }}
strategy:
matrix:
java-version: [11]
edition: [ee]
services:
maildev:
image: maildev/maildev:1.1.0
ports:
- "80:80"
- "25:25"
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Prepare front-end environment
uses: ./.github/actions/prepare-frontend
- name: Prepare JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
- name: Prepare Cypress environment
uses: ./.github/actions/prepare-cypress
- uses: actions/download-artifact@v2
name: Retrieve uberjar artifact for ${{ matrix.edition }}
with:
name: metabase-${{ matrix.edition }}-uberjar
- name: Get the version info
run: |
jar xf target/uberjar/metabase.jar version.properties
mv version.properties resources/
- name: Percy Test
run: yarn run test-visual-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