[e2e] e2e tests #14
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: 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] | |
shardTotal: [1] | |
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 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: ./uui-e2e-tests/tests/.report/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-report-merge ./e2e-blob-reports-all | |
- name: 'Upload HTML report' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: html-e2e-report-attempt-${{ github.run_attempt }} | |
path: playwright-report | |
retention-days: 3 |