Skip to content

Commit

Permalink
Enable perlcritic checks in CI
Browse files Browse the repository at this point in the history
Run perlcritic against all the perl git files.

https://progress.opensuse.org/issues/138416
Signed-off-by: ybonatakis <ybonatakis@suse.com>
  • Loading branch information
b10n1k committed Feb 12, 2024
1 parent 10683a4 commit 8af551c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/check_critic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: perlcritic
on: [push, pull_request]

jobs:
perlcritic_checks:
runs-on: ubuntu-latest
container:
image: registry.opensuse.org/devel/openqa/containers/os-autoinst_dev
steps:
- uses: actions/checkout@v4
- name: Static analysis
run: ./external/os-autoinst-common/tools/perlcritic --quiet .
1 change: 1 addition & 0 deletions .perlcriticrc
3 changes: 2 additions & 1 deletion main.pm
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Copyright 2014-2018 SUSE LLC
# SPDX-License-Identifier: GPL-2.0-or-later

use strict;

use Mojo::Base;
use testapi;
use autotest;

Expand Down
3 changes: 1 addition & 2 deletions tests/boot.pm
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Copyright 2014-2018 SUSE LLC
# SPDX-License-Identifier: GPL-2.0-or-later

use base 'basetest';
use strict;
use Mojo::Base 'basetest';
use testapi;

sub run {
Expand Down

0 comments on commit 8af551c

Please sign in to comment.