diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b93da6a..da77de8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,8 @@ jobs: - { image: fedora40 } - { image: fedora42 } - { image: fedora43 } - - { image: fedora44 } + # skip php tests until ADOdb deprecation warnings on PHP 8.5 are resolved in MT core + - { image: fedora44, phpunit: false, skip_php: true } - { image: cloud7 } admin_theme_id: - legacy @@ -49,6 +50,7 @@ jobs: -v ${{ github.workspace }}/plugins/MTBlockEditor:/app/plugins/MTBlockEditor \ -w /app \ -e MT_TEST_ENV_ADMIN_THEME_ID=${{ matrix.admin_theme_id }} \ + -e MT_TEST_SKIP_PHP=${{ matrix.config.skip_php }} \ ghcr.io/movabletype/movabletype/test:${{ matrix.config.image }} \ prove -j4 -PMySQLPool=MT::Test::Env -It/lib \ plugins/MTBlockEditor/t diff --git a/plugins/MTBlockEditor/t/08-app-oembed.t b/plugins/MTBlockEditor/t/08-app-oembed.t index 89353dd..ac009b7 100644 --- a/plugins/MTBlockEditor/t/08-app-oembed.t +++ b/plugins/MTBlockEditor/t/08-app-oembed.t @@ -91,7 +91,18 @@ subtest 'mt_be_oembed' => sub { }); my ($headers, $body) = split(/\r\n\r\n/, delete($app->{__test_output})); my $res = eval { MT::Util::from_json(Encode::decode('UTF-8', $body)) }; - ok $res && $res->{html}; + my $json_error = $@; + my $success = $res && $res->{html}; + + unless ($success) { + diag "JSON decode error: $json_error" if $json_error; + diag "Response headers:\n$headers"; + diag "Response body:\n$body"; + plan skip_all => 'SlideShare oEmbed is unavailable from this environment' + if $s->{name} eq 'slideshare'; + } + + ok $success; } }