App-Workflow-Lint
view release on metacpan or search on metacpan
use strict;
use warnings;
use Test::Most;
use_ok('App::Workflow::Lint::Rule::MissingTimeout');
new_ok('App::Workflow::Lint::Rule::MissingTimeout');
my $rule = App::Workflow::Lint::Rule::MissingTimeout->new;
my $wf = { jobs => { build => {} } };
my @out = $rule->check($wf, { file => 'test.yml' });
is scalar(@out), 1, 'one diagnostic returned';
like $out[0]{message}, qr/missing timeout/, 'message looks right';
done_testing;
( run in 2.522 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )