Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
141 changes: 128 additions & 13 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,72 @@
name: Playwright Tests
# name: Playwright Tests

# on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]

# jobs:
# playwright-tests:
# runs-on: ubuntu-latest

# steps:
# - name: Checkout code
# uses: actions/checkout@v4

# - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version: 18

# - name: Install dependencies
# run: npm ci

# - name: Install Playwright browsers
# run: npx playwright install --with-deps

# - name: Run Playwright tests
# run: npx playwright test


# name: Playwright Tests

# on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]

# jobs:
# playwright-tests:
# runs-on: ubuntu-latest

# strategy:
# matrix:
# shard: [1, 2, 3, 4]

# steps:
# - name: Checkout code
# uses: actions/checkout@v4

# - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version: 18

# - name: Install dependencies
# run: npm ci

# - name: Install Playwright browsers
# run: npx playwright install --with-deps

# - name: Run Playwright tests (Shard ${{ matrix.shard }})
# run: npx playwright test --shard=${{ matrix.shard }}/4




name: Playwright Tests with Allure Report

on:
push:
Expand All @@ -10,20 +78,67 @@ jobs:
playwright-tests:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: Install Playwright browsers
run: npx playwright install --with-deps

- name: Run Playwright tests (Shard ${{ matrix.shard }})
run: npx playwright test --shard=${{ matrix.shard }}/4

- name: Upload Allure results (Shard ${{ matrix.shard }})
uses: actions/upload-artifact@v4
with:
name: allure-results-shard-${{ matrix.shard }}
path: allure-results

merge-allure-report:
needs: playwright-tests
if: always()
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install Allure CLI
run: npm install -g allure-commandline

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Download all Allure results
uses: actions/download-artifact@v4
with:
path: allure-results

- name: Install dependencies
run: npm ci
- name: Merge Allure results
run: |
mkdir merged-results
find allure-results -type f -exec cp {} merged-results \;

- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: Generate final Allure report
run: allure generate merged-results --clean -o allure-report

- name: Run Playwright tests
run: npx playwright test
- name: Upload final Allure report
uses: actions/upload-artifact@v4
with:
name: allure-report-final
path: allure-report
16 changes: 0 additions & 16 deletions node_modules/.bin/playwright

This file was deleted.

16 changes: 0 additions & 16 deletions node_modules/.bin/playwright-core

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/playwright-core.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions node_modules/.bin/playwright-core.ps1

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/playwright.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions node_modules/.bin/playwright.ps1

This file was deleted.

88 changes: 0 additions & 88 deletions node_modules/.package-lock.json

This file was deleted.

Loading
Loading