Skip to content

Commit

Permalink
Use test_requires
Browse files Browse the repository at this point in the history
Otherwise Module::Build does not find them. Also use nice emoji in the
CI workflow
  • Loading branch information
theory committed Feb 6, 2024
1 parent dd0a2d2 commit 3997477
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
16 changes: 8 additions & 8 deletions Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand All @@ -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',
Expand Down

0 comments on commit 3997477

Please sign in to comment.