Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for macos on github actions. #16

Merged
merged 1 commit into from
Aug 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:

- name: Run Tests
run: |
prove -lv t/*.t
export MACARM=true; prove -lv t/*.t
2 changes: 1 addition & 1 deletion cpanfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ on 'test' => sub {
requires "JSON::MaybeXS" => "0";
requires "Test2::Bundle::More" => "0";
requires "Test2::Tools::Class" => "0";
requires "Test2::Tools::LoadModule" => "0.008";
requires "Test2::Tools::Exception" => "0";
requires "Test2::Tools::Warnings" => "0";
requires "Test2::V0" => "0";
requires "Test::Exception" => "0";
requires "Test::Fatal" => "0";
requires "Test::More" => "0";
requires "Test::use::ok" => "0";
requires "lib" => "0";
requires "ok" => "0";
requires "perl" => "5.024";
Expand Down
1 change: 1 addition & 0 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Math::BigRat = 0.2624
Path::Tiny = 0.130
Ref::Util = 0.204
Storable = 3.25
Test2::Tools::LoadModule = 0.008

[Prereqs / TestRequires]

Expand Down
16 changes: 11 additions & 5 deletions t/000_dependencies.t
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ use 5.024;
# since later versions may break things.
use Test2::V0;
use Test2::Bundle::More;
use Test::Exception;
use Test::use::ok;
use Test2::Tools::LoadModule;

use feature qw /postderef signatures/;
no warnings 'experimental';
Expand All @@ -26,10 +25,17 @@ note( 'Testing minimum versions of dependencies');
use ok 'Path::Tiny 0.130';
use ok 'Cpanel::JSON::XS 4.32';
use ok 'List::Util 1.63';
use ok 'Math::BigRat 0.2624';
use ok 'Math::BigInt 1.999837';
use ok 'Math::BigInt::GMP 1.6005';
use ok 'Storable 3.25';
use ok 'Ref::Util 0.204';
# set environment MACARM for testing where this may fail
# do not use Vote::Count on environments with this issue.
# this workaround is for CI testing, where the issue couldn't be fixed
# to allow CI to include macos.
SKIP: {
skip "Math::BigInt doesnt work on GitHub Actions Mac Arm", 4, if ( $ENV{'MACARM'});
load_module_ok 'Math::BigRat 0.2624';
load_module_ok 'Math::BigInt 1.999837';
load_module_ok 'Math::BigInt::GMP 1.6005';
};

done_testing();
Loading