Skip to content

Commit a095c74

Browse files
committed
Workflow dispatch with options
1 parent 146fdd3 commit a095c74

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/pr-php-tests.yml

+21-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@ name: PHP Tests
22

33
on:
44
pull_request:
5+
workflow_dispatch:
6+
inputs:
7+
lando-version:
8+
description: 'Select Lando version'
9+
required: true
10+
default: '3-edge'
11+
type: choice
12+
options:
13+
- '3-stable'
14+
- '3-edge'
15+
- '3-dev'
16+
- '4-stable'
17+
- '4-edge'
18+
- '4-dev'
19+
slim:
20+
description: 'Use slim version'
21+
required: false
22+
default: true
23+
type: boolean
524

625
jobs:
726
leia-tests:
@@ -50,10 +69,10 @@ jobs:
5069
lando-plugin: true
5170
version: dev
5271
sync: false
53-
- name: Setup lando ${{ matrix.lando-version }}
72+
- name: Setup lando ${{ github.event.inputs.lando-version }}${{ github.event.inputs.slim && '-slim' || '' }}
5473
uses: lando/setup-lando@v3
5574
with:
56-
lando-version: ${{ matrix.lando-version }}
75+
lando-version: ${{ github.event.inputs.lando-version }}${{ github.event.inputs.slim && '-slim' || '' }}
5776
config: |
5877
setup.skipCommonPlugins=true
5978
setup.plugins.@lando/php=/home/runner/work/php/php

0 commit comments

Comments
 (0)