Skip to content

[e2e] e2e tests

[e2e] e2e tests #4

Workflow file for this run

name: E2E tests
on:
pull_request:
branches:
- develop
- main
concurrency:
group: ${{ github.workflow }}-${{ github.base_ref }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
e2e-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shardIndex: [1, 2, 3, 4]
shardTotal: [4]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'yarn'
cache-dependency-path: |
**/yarn.lock
- name: 'Build'
run: |
yarn
yarn generate-components-api
yarn build
cd server && yarn
- name: 'Run e2e tests'
run: yarn test-e2e --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
- name: 'Upload e2e blob report'
if: always()
uses: actions/upload-artifact@v4
with:
name: e2e-blob-report-${{ matrix.shardIndex }}
path: ./.reports/playwrite/report
retention-days: 1
e2e-tests-merge-reports:
if: always()
needs: [e2e-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'yarn'
cache-dependency-path: |
**/yarn.lock
- name: 'Install dependencies'
run: |
yarn
cd server && yarn
- name: 'Download all e2e blob reports'
uses: actions/download-artifact@v4
with:
path: e2e-blob-reports-all
pattern: e2e-blob-report-*
merge-multiple: true
- name: 'Merge all e2e blob reports'
run: yarn test-e2e-merge-reports ./e2e-blob-reports-all
- name: 'Upload HTML report'
uses: actions/upload-artifact@v4
with:
name: html-report--attempt-${{ github.run_attempt }}
path: e2e-report
retention-days: 3