File tree 2 files changed +43
-0
lines changed
2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : test dependent modules
3
+
4
+ on :
5
+ workflow_dispatch :
6
+
7
+ jobs :
8
+ build-and-test-job :
9
+ name : Build distribution
10
+ runs-on : ubuntu-20.04
11
+ container :
12
+ image : perldocker/perl-tester:5.34
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - name : install extra modules
16
+ run : cpm install -g Class::XSAccessor Test::DependentModules
17
+ - name : Run Tests
18
+ env :
19
+ AUTHOR_TESTING : 1
20
+ AUTOMATED_TESTING : 1
21
+ EXTENDED_TESTING : 1
22
+ RELEASE_TESTING : 1
23
+ run : auto-build-and-test-dist
24
+ - name : Test Dependents
25
+ env :
26
+ TEST_DEPENDENTS : 1
27
+ run : prove -l xt/dependent-modules.t
Original file line number Diff line number Diff line change
1
+ use strict;
2
+ use warnings;
3
+
4
+ use Test::DependentModules qw( test_modules ) ;
5
+ use Test::More;
6
+
7
+ my @modules = (' Perl::Critic' );
8
+
9
+ SKIP: {
10
+ skip ' $ENV{TEST_DEPENDENTS} not set' , scalar @modules
11
+ unless $ENV {TEST_DEPENDENTS };
12
+ test_modules(@modules );
13
+
14
+ }
15
+
16
+ done_testing();
You can’t perform that action at this time.
0 commit comments