Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
siarheiy committed Mar 14, 2024
1 parent ed1d85a commit eaab967
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions .github/workflows/playwright.yml → .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: playwrite_tests
name: E2E tests
on:
pull_request:
branches:
Expand All @@ -10,7 +10,7 @@ concurrency:
cancel-in-progress: true

jobs:
playwright-tests:
e2e-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
Expand All @@ -27,29 +27,27 @@ jobs:
cache-dependency-path: |
**/yarn.lock
- name: build
- name: 'Build'
run: |
yarn
yarn generate-components-api
yarn build
cd server && yarn
- name: start server
run: yarn start-server
- name: Run Playwright tests
- name: 'Run e2e tests'
run: yarn test-e2e --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}

- name: Upload blob report to GitHub Actions Artifacts
- name: 'Upload e2e blob report'
if: always()
uses: actions/upload-artifact@v4
with:
name: playwrite-blob-report-${{ matrix.shardIndex }}
name: e2e-blob-report-${{ matrix.shardIndex }}
path: ./.reports/playwrite/report
retention-days: 1

merge-reports:
e2e-tests-merge-reports:
if: always()
needs: [playwright-tests]
needs: [screenshot-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -59,24 +57,24 @@ jobs:
cache: 'yarn'
cache-dependency-path: |
**/yarn.lock
- name: install dependencies
- name: 'Install dependencies'
run: |
yarn
cd server && yarn
- name: Download blob reports from GitHub Actions Artifacts
- name: 'Download all e2e blob reports'
uses: actions/download-artifact@v4
with:
path: all-blob-reports
pattern: playwrite-blob-report-*
path: e2e-blob-reports-all
pattern: e2e-blob-report-*
merge-multiple: true

- name: Merge into HTML Report
run: npx playwright merge-reports --reporter html ./all-blob-reports
- name: 'Merge all e2e blob reports'
run: yarn test-e2e merge-reports --reporter html ./e2e-blob-reports-all

- name: Upload HTML report
- name: 'Upload HTML report'
uses: actions/upload-artifact@v4
with:
name: html-report--attempt-${{ github.run_attempt }}
path: playwright-report
path: e2e-report
retention-days: 3

0 comments on commit eaab967

Please sign in to comment.