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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,48 +1,64 @@
name: Playwright Tests
on:
push:
branches: "*"
pull_request:
branches: "*"

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 17
cache: npm
cache-dependency-path: "**/package-lock.json"
- name: Install build dependencies (package-lock.json)
run: npm ci
- name: Install build dependencies (app/package-lock.json)
working-directory: app
run: npm ci
- name: Cache runtime dependencies
id: cache-runtime-deps
uses: actions/cache@v4
with:
path: depend/
key: ${{ runner.os }}-${{ hashFiles('manifest.json') }}
- name: Install runtime dependencies
if: ${{ steps.cache-runtime-deps.outputs.cache-hit != 'true' }}
run: npx gulp installDeps
- name: Build application
run: npm run test:build
- name: Prepare tmp test files
run: npm run test:tmpFiles
- name: Run playwright tests
uses: coactions/setup-xvfb@v1
with:
run: |
npm run test:parallel
npm run test:serial
- uses: actions/upload-artifact@v4
if: always()
with:
name: reports
path: reports/playwright/
retention-days: 30
name: Playwright Tests
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
push:
branches:
- develop
tags:
- '*'

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache-dependency-path: "**/package-lock.json"
- name: Install build dependencies (package-lock.json)
run: npm ci
- name: Install build dependencies (app/package-lock.json)
working-directory: app
run: npm ci
- name: Install Electron system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-0t64 libnss3 libatk1.0-0t64 \
libatk-bridge2.0-0t64 libcups2t64 libdrm2 libxkbcommon0 \
libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 \
libpango-1.0-0 libcairo2 libasound2t64 libatspi2.0-0t64 \
libdbus-1-3 libxcursor1 libxi6 libxinerama1 libxext6 \
libxrender1 libx11-xcb1
- name: Cache runtime dependencies
id: cache-runtime-deps
uses: actions/cache@v4
with:
path: depend/
key: ${{ runner.os }}-${{ hashFiles('manifest.json') }}
- name: Install runtime dependencies
if: ${{ steps.cache-runtime-deps.outputs.cache-hit != 'true' }}
run: npx gulp installDeps
- name: Build application
run: npm run test:build
- name: Prepare tmp test files
run: npm run test:tmpFiles
- name: Run playwright tests
uses: coactions/setup-xvfb@v1
with:
run: |
npm run test:parallel
npm run test:serial
- uses: actions/upload-artifact@v4
if: always()
with:
name: reports
path: reports/playwright/
retention-days: 30
Loading