Skip to content

Commit

Permalink
Execute docker dependent tests with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jakzal committed May 4, 2020
1 parent ec5bd25 commit c880e63
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ protected function setUp(): void
if (!\extension_loaded('redis')) {
self::markTestSkipped('Extension redis required.');
}
try {
(new \Redis())->connect(getenv('REDIS_HOST'));
} catch (\Exception $e) {
self::markTestSkipped($e->getMessage());
}

$host = getenv('REDIS_HOST') ?: 'localhost';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

use Predis\Client;

/**
* @group integration
*/
class PredisClusterSessionHandlerTest extends AbstractRedisSessionHandlerTestCase
{
protected function createRedisClient(string $host): Client
Expand Down
3 changes: 3 additions & 0 deletions Tests/Session/Storage/Handler/PredisSessionHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

use Predis\Client;

/**
* @group integration
*/
class PredisSessionHandlerTest extends AbstractRedisSessionHandlerTestCase
{
protected function createRedisClient(string $host): Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler;

/**
* @group integration
*/
class RedisArraySessionHandlerTest extends AbstractRedisSessionHandlerTestCase
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler;

/**
* @group integration
*/
class RedisClusterSessionHandlerTest extends AbstractRedisSessionHandlerTestCase
{
public static function setUpBeforeClass(): void
Expand Down
3 changes: 3 additions & 0 deletions Tests/Session/Storage/Handler/RedisSessionHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

namespace Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler;

/**
* @group integration
*/
class RedisSessionHandlerTest extends AbstractRedisSessionHandlerTestCase
{
/**
Expand Down

0 comments on commit c880e63

Please sign in to comment.