Skip to content

Commit cc79b70

Browse files
committed
Merge branch 'main' into drop-php-84
* main: exclude http test from ci CS
2 parents f66729f + a3f3a32 commit cc79b70

3 files changed

Lines changed: 23 additions & 14 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ on: [push, pull_request]
55
jobs:
66
blackbox:
77
uses: innmind/github-workflows/.github/workflows/black-box-matrix.yml@main
8+
with:
9+
tags: ci
810
coverage:
911
uses: innmind/github-workflows/.github/workflows/coverage-matrix.yml@main
1012
secrets: inherit
13+
with:
14+
tags: ci
1115
psalm:
1216
uses: innmind/github-workflows/.github/workflows/psalm-matrix.yml@main
1317
cs:

‎composer.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"name": "innmind/async",
33
"type": "library",
44
"description": "Async orchestration",
5-
"keywords": ["async"],
5+
"keywords": [
6+
"async"
7+
],
68
"homepage": "http://github.com/innmind/async",
79
"license": "MIT",
810
"authors": [

‎proofs/functional.php‎

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
Path,
2323
};
2424
use Innmind\Immutable\Sequence;
25-
use Innmind\BlackBox\Set;
25+
use Innmind\BlackBox\{
26+
Set,
27+
Tag,
28+
};
2629

2730
return static function() {
2831
yield test(
@@ -48,7 +51,7 @@ static function($assert) {
4851
->inMoreThan()
4952
->seconds(1);
5053
},
51-
);
54+
)->tag(Tag::local, Tag::ci);
5255

5356
yield proof(
5457
'Carry value via the scope',
@@ -80,7 +83,7 @@ static function($assert, $initial, $modified) {
8083
);
8184
$assert->same($modified, $returned);
8285
},
83-
);
86+
)->tag(Tag::local, Tag::ci);
8487

8588
yield proof(
8689
'Retrieve the tasks results',
@@ -101,7 +104,7 @@ static function($assert, $value) {
101104
);
102105
$assert->same([$value], $values->toList());
103106
},
104-
);
107+
)->tag(Tag::local, Tag::ci);
105108

106109
yield test(
107110
'The scope is run asynchronously',
@@ -145,7 +148,7 @@ static function($os) {
145148
->inMoreThan()
146149
->seconds(2);
147150
},
148-
);
151+
)->tag(Tag::local, Tag::ci);
149152

150153
yield test(
151154
'The scope and tasks are run asynchronously',
@@ -201,7 +204,7 @@ static function($os) use (&$results) {
201204
->inMoreThan()
202205
->seconds(2);
203206
},
204-
);
207+
)->tag(Tag::local, Tag::ci);
205208

206209
yield test(
207210
'The scope and tasks are run asynchronously in different order',
@@ -258,7 +261,7 @@ static function($os) use (&$results) {
258261
->inMoreThan()
259262
->seconds(2);
260263
},
261-
);
264+
)->tag(Tag::local, Tag::ci);
262265

263266
yield test(
264267
'Streams read by lines are handled asynchronously',
@@ -337,7 +340,7 @@ static function($os) use ($assert, &$lines) {
337340
$lines,
338341
);
339342
},
340-
);
343+
)->tag(Tag::local, Tag::ci);
341344

342345
yield test(
343346
'Streams read by chunks are handled asynchronously',
@@ -401,7 +404,7 @@ static function($os) use ($assert, &$chunks) {
401404
$chunks,
402405
);
403406
},
404-
);
407+
)->tag(Tag::local, Tag::ci);
405408

406409
yield test(
407410
'HTTP requests are handled asynchronously',
@@ -451,7 +454,7 @@ static function($os) use ($assert, &$order) {
451454
$order,
452455
);
453456
},
454-
);
457+
)->tag(Tag::local);
455458

456459
yield test(
457460
'Discard results',
@@ -471,7 +474,7 @@ static function($assert) {
471474

472475
$assert->same(0, $results->size());
473476
},
474-
);
477+
)->tag(Tag::local, Tag::ci);
475478

476479
yield proof(
477480
'Limit concurrency',
@@ -505,7 +508,7 @@ static function($assert, $tasks, $max) {
505508
((int) \ceil($tasks / $max)) + 1,
506509
);
507510
},
508-
);
511+
)->tag(Tag::local, Tag::ci);
509512

510513
yield test(
511514
'Abort tasks',
@@ -562,5 +565,5 @@ static function() use (&$continue) {
562565
->inMoreThan()
563566
->seconds(1);
564567
},
565-
);
568+
)->tag(Tag::local, Tag::ci);
566569
};

0 commit comments

Comments
 (0)