Skip to content

Commit

Permalink
Tidy up, add CI action for checking code tidiness
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrtj committed Jul 27, 2024
1 parent 6208bcb commit dcc88fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ jobs:
perl -v
cpanm -v
- name: Check if the code is tidy
if: ${{ startsWith(matrix.runner, 'ubuntu-') && startsWith(matrix.perl, '5.36') }}
run: |
cpanm --notest Perl::Tidy Code::TidyAll
tidyall -a --check-only
- name: Install Test::More
if: ${{ startsWith( matrix.perl, '5.10') }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion t/500-subforms/01-default.t
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ subtest 'testing default' => sub {
};

subtest 'testing default with error' => sub {
my $form = Form::Parent->new(subform_default => { value1 => [] });
my $form = Form::Parent->new(subform_default => {value1 => []});
$form->set_input({});

my $err = try sub {
Expand Down

0 comments on commit dcc88fe

Please sign in to comment.