diff --git a/.github/workflows/test-dependents.yml b/.github/workflows/test-dependents.yml new file mode 100644 index 00000000..a04acef1 --- /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.34 + steps: + - uses: actions/checkout@v2 + - 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: 0 + run: auto-build-and-test-dist + - name: Test Dependents + env: + TEST_DEPENDENTS: 1 + run: prove -l xt/dependent-modules.t diff --git a/xt/dependent-modules.t b/xt/dependent-modules.t new file mode 100644 index 00000000..581f7aa8 --- /dev/null +++ b/xt/dependent-modules.t @@ -0,0 +1,16 @@ +use strict; +use warnings; + +use Test::DependentModules qw( test_modules ); +use Test::More; + +my @modules = ('Perl::Critic'); + +SKIP: { + skip '$ENV{TEST_DEPENDENTS} not set', scalar @modules + unless $ENV{TEST_DEPENDENTS}; + test_modules(@modules); + +} + +done_testing();