diff --git a/tests/MinifyCacheAPCuTest.php b/tests/MinifyCacheAPCuTest.php index f11ab90e..c5f9d005 100644 --- a/tests/MinifyCacheAPCuTest.php +++ b/tests/MinifyCacheAPCuTest.php @@ -8,6 +8,11 @@ class MinifyCacheAPCuTest extends TestCase { public function setUp(): void { + if (getenv('GITHUB_ACTION')) { + $this->markTestSkipped("Skipping on CI"); + return; + } + if (!function_exists('apcu_store')) { $this->markTestSkipped("To test this component, install APCu extension"); } diff --git a/tests/MinifyCacheMemcacheTest.php b/tests/MinifyCacheMemcacheTest.php index 04fc321c..6d30bebd 100644 --- a/tests/MinifyCacheMemcacheTest.php +++ b/tests/MinifyCacheMemcacheTest.php @@ -12,6 +12,11 @@ class MinifyCacheMemcacheTest extends TestCase public function setUp(): void { + if (getenv('GITHUB_ACTION')) { + $this->markTestSkipped("Skipping on CI"); + return; + } + if (!function_exists('memcache_set')) { $this->markTestSkipped("To test this component, install memcache in PHP"); }