Skip to content

Commit

Permalink
Merge pull request #16 from brainbuz/development
Browse files Browse the repository at this point in the history
Fix for macos on github actions.
  • Loading branch information
brainbuz authored Aug 24, 2024
2 parents 64be411 + 2212490 commit ebcb8fe
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
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();

0 comments on commit ebcb8fe

Please sign in to comment.