mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-11 09:51:30 +00:00
27 lines
754 B
YAML
27 lines
754 B
YAML
name: 'Run E2E Tests'
|
|
description: 'Setup dependencies, configure environment, and run Playwright E2E tests'
|
|
inputs:
|
|
os:
|
|
description: 'Operating system (ubuntu, macos, windows)'
|
|
default: 'ubuntu'
|
|
shell:
|
|
description: 'Shell to use (bash, pwsh)'
|
|
required: false
|
|
default: 'bash'
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: Install Test Collection Dependencies
|
|
shell: ${{ inputs.shell }}
|
|
run: npm ci --prefix packages/bruno-tests/collection
|
|
|
|
- name: Run Playwright Tests (Ubuntu)
|
|
if: inputs.os == 'ubuntu'
|
|
shell: bash
|
|
run: xvfb-run dbus-run-session -- npm run test:e2e
|
|
|
|
- name: Run Playwright Tests
|
|
if: inputs.os != 'ubuntu'
|
|
shell: ${{ inputs.shell }}
|
|
run: npm run test:e2e
|