Skip to content

Commit 891e3fd

Browse files
committed
Merge remote-tracking branch 'origin/fix/job-code-and-cloud-configuration' into fix/job-code-and-cloud-configuration
2 parents cecef7f + 41e7419 commit 891e3fd

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

.github/workflows/infection.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ jobs:
2929
./infection.phar
3030
3131
- name: Store infection log
32-
uses: actions/upload-artifact@v3
32+
uses: actions/upload-artifact@v4
3333
with:
3434
path: infection.log

.github/workflows/phpunit.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ jobs:
2525
run: bin/phpunit --coverage-html var/coverage
2626

2727
- name: Store coverage files
28-
uses: actions/upload-artifact@v3
28+
uses: actions/upload-artifact@v4
2929
with:
3030
path: var/coverage

src/Cloud/Workflow.php

+7-9
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,13 @@ function (string $code, array $config, int $order) {
4949
$name,
5050
new JobCode($code),
5151
new StepList(
52-
...array_map(function (string $code, array $step, int $order) {
53-
return new Step(
54-
$step['name'] ?? sprintf('step%d', $order),
55-
new StepCode($code ?? sprintf('step%d', $order)),
56-
$step,
57-
new ProbeList(),
58-
$order
59-
);
60-
},
52+
...array_map(fn(string $code, array $step, int $order) => new Step(
53+
$step['name'] ?? sprintf('step%d', $order),
54+
new StepCode($code ?? sprintf('step%d', $order)),
55+
$step,
56+
new ProbeList(),
57+
$order
58+
),
6159
array_keys($config['pipeline']['steps']),
6260
$config['pipeline']['steps'],
6361
range(0, (is_countable($config['pipeline']['steps']) ? \count($config['pipeline']['steps']) : 0) - 1)

0 commit comments

Comments
 (0)