-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (57 loc) · 2.11 KB
/
test-components.yml
File metadata and controls
59 lines (57 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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 }}\" Version:${{ 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
- name: Upload reports
uses: actions/upload-artifact@v4
with:
name: test-reports
path: build/**/*