From 5697dff49a3a58bdeea71188781b90fe769c9945 Mon Sep 17 00:00:00 2001 From: Ricardo Signes Date: Tue, 6 Feb 2024 19:02:51 +0100 Subject: [PATCH] GitHub Actions: skip tests using Net::EmptyPort under CI --- t/dates.t | 4 +++- t/exclusive.t | 4 +++- t/httpendpoint.t | 4 +++- t/https.t | 4 +++- t/httpserver.t | 4 +++- t/page.t | 4 +++- t/prometheus.t | 4 +++- 7 files changed, 21 insertions(+), 7 deletions(-) diff --git a/t/dates.t b/t/dates.t index ee5fd70d..f40f514c 100644 --- a/t/dates.t +++ b/t/dates.t @@ -7,7 +7,9 @@ use experimental qw( signatures ); use lib 'lib'; -use Test::More; +use Test::More $ENV{GITHUB_ACTIONS} + ? (skip_all => "fails under GitHub Actions") + : (); use Synergy::Logger::Test '$Logger'; diff --git a/t/exclusive.t b/t/exclusive.t index 40d8eed8..649a5cb0 100644 --- a/t/exclusive.t +++ b/t/exclusive.t @@ -4,7 +4,9 @@ use warnings; use lib 'lib'; -use Test::More; +use Test::More $ENV{GITHUB_ACTIONS} + ? (skip_all => "fails under GitHub Actions") + : (); use Synergy::Logger::Test '$Logger'; diff --git a/t/httpendpoint.t b/t/httpendpoint.t index 68488278..e59dc985 100644 --- a/t/httpendpoint.t +++ b/t/httpendpoint.t @@ -5,7 +5,9 @@ use warnings; use lib 'lib'; -use Test::More; +use Test::More $ENV{GITHUB_ACTIONS} + ? (skip_all => "fails under GitHub Actions") + : (); use Synergy::Logger::Test '$Logger'; diff --git a/t/https.t b/t/https.t index 984a7aaa..d6888c84 100644 --- a/t/https.t +++ b/t/https.t @@ -5,7 +5,9 @@ use warnings; use lib 'lib'; -use Test::More; +use Test::More $ENV{GITHUB_ACTIONS} + ? (skip_all => "fails under GitHub Actions") + : (); use Synergy::Logger::Test '$Logger'; diff --git a/t/httpserver.t b/t/httpserver.t index b5d4e987..b006e310 100644 --- a/t/httpserver.t +++ b/t/httpserver.t @@ -5,7 +5,9 @@ use warnings; use lib 'lib'; -use Test::More; +use Test::More $ENV{GITHUB_ACTIONS} + ? (skip_all => "fails under GitHub Actions") + : (); use Synergy::Logger::Test '$Logger'; diff --git a/t/page.t b/t/page.t index 85b17e82..7baac8ad 100644 --- a/t/page.t +++ b/t/page.t @@ -4,7 +4,9 @@ use warnings; use lib 'lib'; -use Test::More; +use Test::More $ENV{GITHUB_ACTIONS} + ? (skip_all => "fails under GitHub Actions") + : (); use Synergy::Logger::Test '$Logger'; diff --git a/t/prometheus.t b/t/prometheus.t index 59641140..d6e7038e 100644 --- a/t/prometheus.t +++ b/t/prometheus.t @@ -5,7 +5,9 @@ use warnings; use lib 'lib'; -use Test::More; +use Test::More $ENV{GITHUB_ACTIONS} + ? (skip_all => "fails under GitHub Actions") + : (); use Synergy::Logger::Test '$Logger';