-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
99 lines (89 loc) · 3.76 KB
/
Copy pathaction.yml
File metadata and controls
99 lines (89 loc) · 3.76 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: "Sylius Plugin CI"
description: "Run all PHP CI checks (coding standards, analysis, tests, coverage) sequentially in one job"
author: "Setono"
branding:
icon: "check-square"
color: "blue"
inputs:
php-version:
description: "PHP version for most checks"
required: false
default: "8.3"
php-version-lowest:
description: "PHP version for coding-standards (should be the lowest supported version)"
required: false
default: "8.2"
dependencies:
description: "Composer dependency versions: lowest or highest"
required: false
default: "highest"
symfony:
description: "Symfony version constraint for Flex (e.g. ~7.4.0)"
required: false
default: "~7.4.0"
extensions:
description: "PHP extensions to install"
required: false
default: "intl, mbstring"
database-url:
description: "DATABASE_URL for the functional tests"
required: false
default: "mysql://root:root@127.0.0.1/sylius?serverVersion=8.0"
codecov-token:
description: "Codecov upload token. Leave empty to skip the code-coverage step."
required: false
default: ""
stryker-dashboard-api-key:
description: "Stryker Dashboard API key. Leave empty to skip dashboard reporting (Infection still runs)."
required: false
default: ""
runs:
using: "composite"
steps:
- uses: "setono/sylius-plugin/coding-standards@v2"
with:
php-version: "${{ inputs.php-version-lowest }}"
dependencies: "${{ inputs.dependencies }}"
extensions: "${{ inputs.extensions }}"
- uses: "setono/sylius-plugin/dependency-analysis@v2"
with:
php-version: "${{ inputs.php-version }}"
dependencies: "${{ inputs.dependencies }}"
symfony: "${{ inputs.symfony }}"
extensions: "${{ inputs.extensions }}"
- uses: "setono/sylius-plugin/static-code-analysis@v2"
with:
php-version: "${{ inputs.php-version }}"
dependencies: "${{ inputs.dependencies }}"
symfony: "${{ inputs.symfony }}"
extensions: "${{ inputs.extensions }}"
- uses: "setono/sylius-plugin/unit-tests@v2"
with:
php-version: "${{ inputs.php-version }}"
dependencies: "${{ inputs.dependencies }}"
symfony: "${{ inputs.symfony }}"
extensions: "${{ inputs.extensions }}"
- uses: "setono/sylius-plugin/functional-tests@v2"
with:
php-version: "${{ inputs.php-version }}"
dependencies: "${{ inputs.dependencies }}"
symfony: "${{ inputs.symfony }}"
extensions: "${{ inputs.extensions }}"
database-url: "${{ inputs.database-url }}"
- uses: "setono/sylius-plugin/mutation-tests@v2"
with:
php-version: "${{ inputs.php-version }}"
dependencies: "${{ inputs.dependencies }}"
extensions: "${{ inputs.extensions }}"
stryker-dashboard-api-key: "${{ inputs.stryker-dashboard-api-key }}"
- if: "inputs.codecov-token != ''"
uses: "setono/sylius-plugin/code-coverage@v2"
with:
php-version: "${{ inputs.php-version }}"
dependencies: "${{ inputs.dependencies }}"
extensions: "${{ inputs.extensions }}"
codecov-token: "${{ inputs.codecov-token }}"
- if: "github.event_name == 'pull_request'"
uses: "setono/sylius-plugin/backwards-compatibility@v2"
with:
php-version: "${{ inputs.php-version }}"