Integrate roav-mep into dashboard #259
Workflow file for this run
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
name: Run Cypress Participant Tests | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
concurrency: | |
group: ci-preview-tests-${{ github.ref }}-3 | |
cancel-in-progress: true | |
jobs: | |
cypress-run: | |
name: Run Cypress Participant Tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 90 | |
strategy: | |
fail-fast: false | |
matrix: | |
browser: [chromium, edge] | |
containers: [1, 2] | |
env: | |
NODE_OPTIONS: '--max_old_space_size=8192' | |
NODE_ENV: 'test' | |
CYPRESS_BASE_URL: 'http://localhost:5173' | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
COMMIT_INFO_MESSAGE: Tests for PR ${{ github.event.number }} "${{ github.event.pull_request.title }}" from commit "${{ github.event.pull_request.head.sha }}" | |
COMMIT_INFO_SHA: ${{ github.event.pull_request.head.sha }} | |
PARTNER_ADMIN_USERNAME: ${{ secrets.PARTNER_ADMIN_USERNAME }} | |
PARTNER_ADMIN_PASSWORD: ${{ secrets.PARTNER_ADMIN_PASSWORD }} | |
PARTNER_ADMIN_ID: ${{ secrets.PARTNER_ADMIN_ID }} | |
PARTICIPANT_USERNAME: ${{ secrets.PARTICIPANT_USERNAME}} | |
PARTICIPANT_PASSWORD: ${{ secrets.PARTICIPANT_PASSWORD }} | |
PARTICIPANT_EMAIL: ${{ secrets.PARTICIPANT_EMAIL }} | |
PARTICIPANT_EMAIL_PASSWORD: ${{ secrets.PARTICIPANT_EMAIL_PASSWORD }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
browser: ${{ matrix.browser }} | |
build: npm ci && npm run build | |
start: npm run dev | |
wait-on: ${{ env.CYPRESS_BASE_URL }} | |
wait-on-timeout: 120 | |
record: true | |
parallel: true | |
spec: 'cypress/e2e/participant/default-tests/**/*' | |
ci-build-id: ${{ github.run_id }}-${{ matrix.browser }} |