diff options
author | Olaf Alders <olaf@wundersolutions.com> | 2022-10-13 11:22:38 -0400 |
---|---|---|
committer | Olaf Alders <olaf@wundersolutions.com> | 2023-04-29 15:11:02 +0200 |
commit | 81a4678022d08a1ddc58094d429f1f852a84f3f0 (patch) | |
tree | bc9b7ac6fe73cb40651813d4e3bbdf40c4c0b9e2 | |
parent | f68b0cc5f10144639365518292abc36ac80b46af (diff) | |
download | uri-81a4678022d08a1ddc58094d429f1f852a84f3f0.tar.gz |
Add a GH workflow to test LWP::Curl
-rw-r--r-- | .github/workflows/test-dependents.yml | 27 | ||||
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | cpanfile | 1 | ||||
-rw-r--r-- | xt/dependent-modules.t | 16 |
4 files changed, 45 insertions, 0 deletions
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 @@ -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) @@ -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(); |