fix backend issue,add user_info #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Triggers Percy job on pull requests that contain "visual" label | |
name: Percy visual tests | |
on: | |
pull_request: | |
types: [synchronize, labeled] | |
jobs: | |
percy: | |
if: contains(github.event.pull_request.labels.*.name, 'visual') | |
timeout-minutes: 30 | |
runs-on: buildjet-4vcpu-ubuntu-2004 | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MB_EDITION: ee | |
MB_PREMIUM_EMBEDDING_TOKEN: ${{ secrets.ENTERPRISE_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare front-end environment | |
uses: ./.github/actions/prepare-frontend | |
- name: Prepare back-end environment | |
uses: ./.github/actions/prepare-backend | |
with: | |
m2-cache-key: percy-visual-label | |
- name: Prepare cypress environment | |
uses: ./.github/actions/prepare-cypress | |
- run: ./bin/build.sh | |
- name: Get the version info | |
run: | | |
jar xf target/uberjar/metabase.jar version.properties | |
mv version.properties resources/ | |
- name: Run maildev | |
run: docker run -d -p 1080:1080 -p 1025:1025 maildev/maildev:2.0.5 | |
- name: Percy Test | |
run: yarn run test-visual-run | |
env: | |
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} |