Skip to content

Commit 9a7f463

Browse files
committed
Test GHA int with Linux OS family
1 parent df556da commit 9a7f463

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/integration/src/Repositories/AccessTokenRepositoryTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,15 @@ class AccessTokenRepositoryTest extends TestCase
7070

7171
public static function setUpBeforeClass(): void
7272
{
73+
7374
self::$containerAddress = getenv('HOSTADDRESS') ?: null;
7475
self::$mysqlPort = getenv('HOSTPORT_MY') ?: null;
7576
self::$postgresPort = getenv('HOSTPORT_PG') ?: null;
7677
// Mac docker seems to require connecting to localhost and mapped port to access containers
77-
if (PHP_OS_FAMILY === 'Darwin' && getenv('HOSTADDRESS') === false) {
78+
if (
79+
in_array(PHP_OS_FAMILY, ['Darwin', 'Linux']) &&
80+
getenv('HOSTADDRESS') === false
81+
) {
7882
//phpcs:ignore Generic.Files.LineLength.TooLong
7983
echo "Defaulting docker host address to 127.0.0.1. Disable this behavior by setting HOSTADDRESS to a blank.\n\tHOSTADDRESS= ./vendor/bin/phpunit";
8084
self::$containerAddress = "127.0.0.1";

0 commit comments

Comments
 (0)