Skip to content

Commit 649ee42

Browse files
committed
Workflow dispatch with options
1 parent 6a427f2 commit 649ee42

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

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

Lines changed: 21 additions & 4 deletions
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:
@@ -27,8 +46,6 @@ jobs:
2746
- examples/composer
2847
- examples/php-extensions
2948
- examples/xdebug
30-
lando-version:
31-
- 3-edge-slim
3249
os:
3350
- ubuntu-24.04
3451
node-version:
@@ -50,10 +67,10 @@ jobs:
5067
lando-plugin: true
5168
version: dev
5269
sync: false
53-
- name: Setup lando ${{ matrix.lando-version }}
70+
- name: Setup lando ${{ github.event.inputs.lando-version }}${{ github.event.inputs.slim && '-slim' || '' }}
5471
uses: lando/setup-lando@v3
5572
with:
56-
lando-version: ${{ matrix.lando-version }}
73+
lando-version: ${{ github.event.inputs.lando-version }}${{ github.event.inputs.slim && '-slim' || '' }}
5774
config: |
5875
setup.skipCommonPlugins=true
5976
setup.plugins.@lando/php=/home/runner/work/php/php

0 commit comments

Comments
 (0)