Run desktop regression tests #18
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: Run desktop regression tests | |
on: | |
workflow_dispatch: | |
inputs: | |
PLAYWRIGHT_REPO: | |
description: 'Playwright repo to checkout' | |
required: true | |
type: choice | |
options: | |
- oxen-io/session-playwright | |
- burtonemily/session-playwright | |
- bilb/session-playwright | |
default: oxen-io/session-playwright | |
BRANCH_TO_CHECKOUT_PW: | |
description: 'branch to checkout on session-playwright' | |
required: true | |
type: string | |
default: main | |
SESSION_DESKTOP_REPO: | |
description: 'Session desktop repo to checkout' | |
required: true | |
type: choice | |
options: | |
- oxen-io/session-desktop | |
- bilb/session-desktop | |
- yougotwill/session-desktop | |
default: oxen-io/session-desktop | |
BRANCH_TO_CHECKOUT_SESSION: | |
description: 'Branch to checkout on session-desktop' | |
required: true | |
type: string | |
default: unstable | |
PLAYWRIGHT_REPEAT_COUNT: | |
description: 'Repeats of each tests (0 to only run each once)' | |
required: true | |
type: number | |
default: 0 | |
PLAYWRIGHT_RETRIES_COUNT: | |
description: 'Retries of each tests (0 to only run each once, 1 to run another attempt)' | |
required: true | |
type: number | |
default: 0 | |
PLAYWRIGHT_WORKER_COUNT: | |
description: 'Playwright workers to start' | |
required: true | |
type: number | |
default: 4 | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
desktop-regression: | |
name: Desktop Regression Tests | |
runs-on: [self-hosted, linux, x64, qa-desktop] | |
container: | |
image: ubuntu:latest | |
env: | |
SESSION_DESKTOP_ROOT: '$GITHUB_WORKSPACE/desktop' | |
PLAYWRIGHT_CUSTOM_REPORTER: 1 | |
PLAYWRIGHT_REPEAT_COUNT: ${{ github.event.inputs.PLAYWRIGHT_REPEAT_COUNT }} | |
PLAYWRIGHT_RETRIES_COUNT: ${{ github.event.inputs.PLAYWRIGHT_RETRIES_COUNT }} | |
PLAYWRIGHT_WORKER_COUNT: ${{ github.event.inputs.PLAYWRIGHT_WORKER_COUNT }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Runner Details | |
run: | | |
echo "SESSION_DESKTOP_ROOT ${{ env.SESSION_DESKTOP_ROOT }}" | |
echo "PLAYWRIGHT_REPO ${{ github.event.inputs.PLAYWRIGHT_REPO }}" | |
echo "BRANCH_TO_CHECKOUT_PW ${{ github.event.inputs.BRANCH_TO_CHECKOUT_PW }}" | |
echo "SESSION_DESKTOP_REPO ${{ github.event.inputs.SESSION_DESKTOP_REPO }}" | |
echo "BRANCH_TO_CHECKOUT_SESSION ${{ github.event.inputs.BRANCH_TO_CHECKOUT_SESSION }}" | |
- uses: actions/checkout@v4 | |
name: 'Checkout playwright' | |
with: | |
repository: ${{ github.event.inputs.PLAYWRIGHT_REPO }} | |
ref: ${{ github.event.inputs.BRANCH_TO_CHECKOUT_PW }} | |
path: 'playwright' | |
- name: Install system deps | |
run: apt update && apt install -y git g++ build-essential cmake | |
- uses: actions/checkout@v4 | |
name: 'Checkout Session desktop' | |
with: | |
repository: ${{ github.event.inputs.SESSION_DESKTOP_REPO }} | |
ref: ${{ github.event.inputs.BRANCH_TO_CHECKOUT_SESSION }} | |
path: 'desktop' | |
- name: List desktop folder | |
run: | | |
pwd | |
ls -la desktop | |
- name: List playwright folder | |
run: | | |
pwd | |
ls -la playwright | |
- name: cd to desktop | |
run: | | |
pwd | |
cd desktop | |
pwd | |
- name: Build desktop | |
uses: ./actions/setup_and_build | |
- name: Install playwright deps & Build | |
run: | | |
cd $GITHUB_WORKSPACE/playwright | |
yarn install --frozen-lockfile && yarn tsc | |
- name: Run the Desktop tests | |
run: | | |
cd $GITHUB_WORKSPACE/playwright | |
yarn test -g "Create User" |