From 39974776341a0bc6171d23a09d2746ea024e0e44 Mon Sep 17 00:00:00 2001 From: "David E. Wheeler" Date: Tue, 6 Feb 2024 17:53:11 -0500 Subject: [PATCH] Use test_requires Otherwise Module::Build does not find them. Also use nice emoji in the CI workflow --- .github/workflows/ci.yml | 6 +++--- Build.PL | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 036219d..d231c5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,10 +6,10 @@ jobs: build: strategy: matrix: - os: [ubuntu, macos] + os: [[🐧, ubuntu], [🍎, macos]] # [🪟, windows] perl: [ '5.38', '5.36', '5.34', '5.32', '5.30', '5.28', '5.26', '5.24', '5.22', '5.20', '5.18', '5.16', '5.14' ] - name: 🐪 Perl ${{ matrix.perl }} on ${{ matrix.os }} - runs-on: ${{ matrix.os }}-latest + name: 🧅 Perl ${{ matrix.perl }} on ${{ matrix.os[0] }} ${{ matrix.os[1] }} + runs-on: ${{ matrix.os[1] }}-latest steps: - uses: actions/checkout@v4 - name: Setup Perl ${{ matrix.perl }} diff --git a/Build.PL b/Build.PL index a98fb20..4be483e 100644 --- a/Build.PL +++ b/Build.PL @@ -92,6 +92,14 @@ my $build = $class->new( 'Template::Declare::Tags' => '0.43', 'WWW::PGXN' => '0.12.0', }, + test_requires => { + 'HTTP::Message::PSGI' => 0, + 'HTTP::Request::Common' => '5.824', + 'Plack::Test' => 0, + 'Test::File::Contents' => '0.20', + 'Test::More' => '0.70', + 'Test::MockModule' => '0.05', + }, meta_merge => { 'meta-spec' => { version => 2 }, resources => { @@ -101,14 +109,6 @@ my $build = $class->new( }, prereqs => { test => { - requires => { - 'HTTP::Message::PSGI' => 0, - 'HTTP::Request::Common' => '5.824', - 'Plack::Test' => 0, - 'Test::File::Contents' => '0.20', - 'Test::More' => '0.70', - 'Test::MockModule' => '0.05', - }, recommends => { 'Test::Pod' => '1.41', 'Test::Pod::Coverage' => '1.06',