From 7a5b579a75f2578e026d3a6afdbceed71e1fb1d7 Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Sun, 16 Aug 2026 11:51:35 +0200 Subject: [PATCH] exclude http test from ci --- .github/workflows/ci.yml | 4 ++++ proofs/functional.php | 29 ++++++++++++++++------------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f3eecb..329c5c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,9 +5,13 @@ on: [push, pull_request] jobs: blackbox: uses: innmind/github-workflows/.github/workflows/black-box-matrix.yml@main + with: + tags: ci coverage: uses: innmind/github-workflows/.github/workflows/coverage-matrix.yml@main secrets: inherit + with: + tags: ci psalm: uses: innmind/github-workflows/.github/workflows/psalm-matrix.yml@main cs: diff --git a/proofs/functional.php b/proofs/functional.php index 1600618..3813fcd 100644 --- a/proofs/functional.php +++ b/proofs/functional.php @@ -22,7 +22,10 @@ Path, }; use Innmind\Immutable\Sequence; -use Innmind\BlackBox\Set; +use Innmind\BlackBox\{ + Set, + Tag, +}; return static function() { yield test( @@ -48,7 +51,7 @@ static function($assert) { ->inMoreThan() ->seconds(1); }, - ); + )->tag(Tag::local, Tag::ci); yield proof( 'Carry value via the scope', @@ -80,7 +83,7 @@ static function($assert, $initial, $modified) { ); $assert->same($modified, $returned); }, - ); + )->tag(Tag::local, Tag::ci); yield proof( 'Retrieve the tasks results', @@ -101,7 +104,7 @@ static function($assert, $value) { ); $assert->same([$value], $values->toList()); }, - ); + )->tag(Tag::local, Tag::ci); yield test( 'The scope is run asynchronously', @@ -145,7 +148,7 @@ static function($os) { ->inMoreThan() ->seconds(2); }, - ); + )->tag(Tag::local, Tag::ci); yield test( 'The scope and tasks are run asynchronously', @@ -201,7 +204,7 @@ static function($os) use (&$results) { ->inMoreThan() ->seconds(2); }, - ); + )->tag(Tag::local, Tag::ci); yield test( 'The scope and tasks are run asynchronously in different order', @@ -258,7 +261,7 @@ static function($os) use (&$results) { ->inMoreThan() ->seconds(2); }, - ); + )->tag(Tag::local, Tag::ci); yield test( 'Streams read by lines are handled asynchronously', @@ -337,7 +340,7 @@ static function($os) use ($assert, &$lines) { $lines, ); }, - ); + )->tag(Tag::local, Tag::ci); yield test( 'Streams read by chunks are handled asynchronously', @@ -401,7 +404,7 @@ static function($os) use ($assert, &$chunks) { $chunks, ); }, - ); + )->tag(Tag::local, Tag::ci); yield test( 'HTTP requests are handled asynchronously', @@ -451,7 +454,7 @@ static function($os) use ($assert, &$order) { $order, ); }, - ); + )->tag(Tag::local); yield test( 'Discard results', @@ -471,7 +474,7 @@ static function($assert) { $assert->same(0, $results->size()); }, - ); + )->tag(Tag::local, Tag::ci); yield proof( 'Limit concurrency', @@ -505,7 +508,7 @@ static function($assert, $tasks, $max) { ((int) \ceil($tasks / $max)) + 1, ); }, - ); + )->tag(Tag::local, Tag::ci); yield test( 'Abort tasks', @@ -562,5 +565,5 @@ static function() use (&$continue) { ->inMoreThan() ->seconds(1); }, - ); + )->tag(Tag::local, Tag::ci); };