Skip to content

Commit

Permalink
Dbp 757 playwright tests (#30)
Browse files Browse the repository at this point in the history
* DBP-757-add playwright_branch input variable
* DBP-757-playwright_branch Input var should be optional
  • Loading branch information
sahassou authored May 13, 2024
1 parent b846123 commit b3d3764
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
name: Playwright Tests

on:
workflow_call:
inputs:
frontendHostname:
type: string
description: 'Hostname of the frontend server (optional)'
required: false
playwright_branch:
type: string
description: 'The name of the branch to be tested with Playwright.'
required: false
default: main
workflow_dispatch:
inputs:
frontendHostname:
type: string
description: 'Hostname of the frontend server (optional)'
required: true
playwright_branch:
type: string
description: 'The name of the branch to be tested with Playwright.'
required: false
default: main
push:
branches: [ main ]

jobs:

run_playwright_end2end_tests:
continue-on-error: true
timeout-minutes: 60
Expand All @@ -27,16 +39,14 @@ jobs:
- uses: actions/checkout@v3
with:
repository: 'dBildungsplattform/schulportal-testautomatisierung'
ref: ${{ inputs.playwright_branch }}
- uses: actions/setup-node@v3
with:
node-version: 16

- name: Remove Microsoft APT and Update Packages
run: |
sudo rm /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update || true
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
Expand All @@ -51,5 +61,4 @@ jobs:
with:
name: playwright-report
path: playwright-report/
retention-days: 30npm login

retention-days: 30npm login

0 comments on commit b3d3764

Please sign in to comment.