Micro Framework Test Tool #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Micro Framework Test Tool | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: "Micro Framework version" | |
| required: true | |
| default: "1.7" | |
| type: choice | |
| options: | |
| - "1.7" | |
| php: | |
| description: "PHP version" | |
| required: true | |
| default: "8.4" | |
| type: choice | |
| options: | |
| - "8.4" | |
| component: | |
| description: "Component" | |
| required: true | |
| default: "All" | |
| type: choice | |
| options: | |
| - "All" | |
| - "dependency-injection" | |
| - "dependency-injection-autowire" | |
| - "micro-kernel" | |
| - "kernel-app" | |
| jobs: | |
| run-tests: | |
| name: "Component: \"${{ github.event.inputs.component }}\" Varsion:${{ github.event.inputs.version }} | PHP: ${{ github.event.inputs.php }}" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout meta repo | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ github.event.inputs.php }} | |
| tools: composer | |
| - name: Install orchestrator dependencies | |
| run: composer install --no-interaction --prefer-dist | |
| - name: Run orchestrator | |
| run: | | |
| if [ "${{ github.event.inputs.component }}" = "All" ]; then | |
| php orchestrator.php --version "${{ github.event.inputs.version }}" | |
| else | |
| php orchestrator.php \ | |
| --version "${{ github.event.inputs.version }}" \ | |
| --component "${{ github.event.inputs.component }}" | |
| fi |