Skip to content

Commit

Permalink
Skip some tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mrclay committed Jan 4, 2024
1 parent e84d55d commit 6166d3b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/MinifyCacheAPCuTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
5 changes: 5 additions & 0 deletions tests/MinifyCacheMemcacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 6166d3b

Please sign in to comment.