Skip to content

Commit

Permalink
Add flexible inputs to Actions Workflow for running e2e tests (#2961)
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz committed Jan 11, 2024
1 parent 05f25cd commit 64a194f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,22 @@ name: Run e2e tests

on:
workflow_dispatch:

inputs:
run-target:
description: Command line for running e2e tests
default: 'yarn e2e:ci'
required: true
platforms:
description: OS platforms to test on (list of strings in JSON format)"
default: '["ubuntu-20.04"]'
required: true
jobs:
run-e2e-tests:
name: Run e2e tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
os: ${{ fromJSON(inputs.platforms) }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-zui
Expand All @@ -21,7 +29,7 @@ jobs:
uses: GabrielBB/xvfb-action@v1
with:
options: -screen 0 1280x1024x24
run: yarn e2e:ci
run: ${{ inputs.run-target }}
- uses: actions/upload-artifact@v2
if: failure() && steps.playwright.outcome == 'failure'
with:
Expand Down

0 comments on commit 64a194f

Please sign in to comment.