From a095c741b882c726461bd379cbbbe50437bb9612 Mon Sep 17 00:00:00 2001 From: Aaron Feledy Date: Mon, 21 Oct 2024 14:55:42 -0500 Subject: [PATCH] Workflow dispatch with options --- .github/workflows/pr-php-tests.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-php-tests.yml b/.github/workflows/pr-php-tests.yml index 71a8b38..1ca1b62 100644 --- a/.github/workflows/pr-php-tests.yml +++ b/.github/workflows/pr-php-tests.yml @@ -2,6 +2,25 @@ name: PHP Tests on: pull_request: + workflow_dispatch: + inputs: + lando-version: + description: 'Select Lando version' + required: true + default: '3-edge' + type: choice + options: + - '3-stable' + - '3-edge' + - '3-dev' + - '4-stable' + - '4-edge' + - '4-dev' + slim: + description: 'Use slim version' + required: false + default: true + type: boolean jobs: leia-tests: @@ -50,10 +69,10 @@ jobs: lando-plugin: true version: dev sync: false - - name: Setup lando ${{ matrix.lando-version }} + - name: Setup lando ${{ github.event.inputs.lando-version }}${{ github.event.inputs.slim && '-slim' || '' }} uses: lando/setup-lando@v3 with: - lando-version: ${{ matrix.lando-version }} + lando-version: ${{ github.event.inputs.lando-version }}${{ github.event.inputs.slim && '-slim' || '' }} config: | setup.skipCommonPlugins=true setup.plugins.@lando/php=/home/runner/work/php/php