From 64a194f806684445136fd2c9b1b0e5c78bafc7a7 Mon Sep 17 00:00:00 2001 From: Phil Rzewski Date: Thu, 11 Jan 2024 06:31:38 +0000 Subject: [PATCH] Add flexible inputs to Actions Workflow for running e2e tests (#2961) --- .github/workflows/e2e.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 086480862b..a319ec51e9 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -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 @@ -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: