xref: /template/strap/.github/workflows/php-test-on-manual.yml (revision 0bba9e161106b540f52011ab57d7f9c4af375912)
1name: PHP Tests started Manually
2
3on:
4  workflow_dispatch: # Manually running a workflow from the UI
5    # https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#inputs
6    inputs:
7      versions:
8        description: 'Version of the interpreter'
9        required: true
10        default: "['8.2']"
11        # https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputsinput_idtype
12        type: choice
13        options:
14          - "['7.4','8.2']"
15          - "['8.2']"
16          - "['7.4']"
17
18# https://docs.github.com/en/actions/using-workflows/reusing-workflows#calling-a-reusable-workflow
19
20jobs:
21  call-test-workflow:
22    uses: ./.github/workflows/php-test-reusable.yml
23    secrets: inherit
24    with:
25      versions: ${{ github.event.inputs.versions }}
26