Skip to content

Commit

Permalink
Workflow dispatch with options
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeledy committed Nov 26, 2024
1 parent 59d3f9d commit 74a10bb
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/pr-php-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -27,8 +46,6 @@ jobs:
- examples/composer
- examples/php-extensions
- examples/xdebug
lando-version:
- 3-edge-slim
os:
- ubuntu-24.04
node-version:
Expand All @@ -50,10 +67,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
Expand Down

0 comments on commit 74a10bb

Please sign in to comment.