Handle MB_RUN_MODE and METASTORE_DEV_SERVER_URL env vars #25
Workflow file for this run
  
    
      This file contains hidden or 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
    
  
  
    
  | name: E2E tests | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| - "*-stable" | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| branches: | |
| - "main" | |
| - "*-stable" | |
| jobs: | |
| e2e-tests: | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 10 | |
| name: e2e-tests | |
| env: | |
| PREMIUM_EMBEDDING_TOKEN: ${{ secrets.MB_PRO_SELF_HOSTED_TOKEN }} | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run Sample App in Docker | |
| run: | | |
| cp .env.docker.example .env.docker && | |
| npm run docker:e2e:up -- --wait | |
| - name: Install Chrome v111 | |
| uses: browser-actions/setup-chrome@v1 | |
| with: | |
| # https://chromium.cypress.io/linux/stable/111.0.5563.146 | |
| chrome-version: 1097615 | |
| id: setup-chrome | |
| - name: Ensure that Cypress executable is ready | |
| run: npm ci --prefix e2e | |
| - name: Run e2e tests | |
| id: run-e2e-tests | |
| run: cd e2e && npm run cypress:run | |
| - name: Upload Cypress Artifacts upon failure | |
| uses: actions/upload-artifact@v4 | |
| if: ${{ steps.run-e2e-tests.outcome != 'success' }} | |
| with: | |
| name: cypress-recording-latest | |
| path: | | |
| ./e2e/cypress | |
| if-no-files-found: ignore |