From 81a4678022d08a1ddc58094d429f1f852a84f3f0 Mon Sep 17 00:00:00 2001 From: Olaf Alders Date: Thu, 13 Oct 2022 11:22:38 -0400 Subject: Add a GH workflow to test LWP::Curl --- .github/workflows/test-dependents.yml | 27 +++++++++++++++++++++++++++ Changes | 1 + cpanfile | 1 + xt/dependent-modules.t | 16 ++++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 .github/workflows/test-dependents.yml create mode 100644 xt/dependent-modules.t diff --git a/.github/workflows/test-dependents.yml b/.github/workflows/test-dependents.yml new file mode 100644 index 0000000..29e6606 --- /dev/null +++ b/.github/workflows/test-dependents.yml @@ -0,0 +1,27 @@ +--- +name: test dependent modules + +on: + workflow_dispatch: + +jobs: + build-and-test-job: + name: Build distribution + runs-on: ubuntu-20.04 + container: + image: perldocker/perl-tester:5.36 + steps: + - uses: actions/checkout@v3 + - name: install extra modules + run: cpm install -g Test::DependentModules + - name: Run Tests + env: + AUTHOR_TESTING: 0 + AUTOMATED_TESTING: 1 + EXTENDED_TESTING: 1 + RELEASE_TESTING: 1 + run: auto-build-and-test-dist + - name: Test Dependents + env: + TEST_DEPENDENTS: 1 + run: prove -l xt/dependent-modules.t diff --git a/Changes b/Changes index c6ae659..c1b17d5 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for URI {{$NEXT}} + - Add a GH workflow to test LWP::Curl (GH#116) (Olaf Alders) 5.17 2022-11-02 17:03:48Z - Updated RFC references in the pod documentation for URI::file (GH#117) diff --git a/cpanfile b/cpanfile index 88c9b49..467f4b7 100644 --- a/cpanfile +++ b/cpanfile @@ -11,6 +11,7 @@ on 'develop' => sub { requires "IPC::Open3" => "0"; requires "Pod::Coverage::TrustPod" => "0"; requires "Test::CPAN::Meta" => "0"; + requires "Test::DependentModules" => "0.27"; requires "Test::MinimumVersion" => "0"; requires "Test::Mojibake" => "0"; requires "Test::More" => "0.94"; diff --git a/xt/dependent-modules.t b/xt/dependent-modules.t new file mode 100644 index 0000000..8ff3964 --- /dev/null +++ b/xt/dependent-modules.t @@ -0,0 +1,16 @@ +use strict; +use warnings; + +use Test::Needs qw( Test::DependentModules ); +use Test::DependentModules qw( test_modules ); +use Test::More; + +my @modules = ('LWP::Curl'); + +SKIP: { + skip '$ENV{TEST_DEPENDENTS} not set', scalar @modules + unless $ENV{TEST_DEPENDENTS}; + test_modules(@modules); +} + +done_testing(); -- cgit v1.2.1