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: