From 92ba12fc9a0c0d43ecfc014e6425d4698e582673 Mon Sep 17 00:00:00 2001 From: ybonatakis Date: Thu, 8 Feb 2024 08:36:08 +0100 Subject: [PATCH] Enable tidy checks in Ci `.tidyallrc` doesnt work properly as a symlink, thus the new file is an actual copy from the external/os-autoinst-common. Signed-off-by: ybonatakis --- .github/workflows/tidy_checks.yml | 15 +++++++++++++++ .perltidyrc | 1 + .tidyallrc | 3 +++ 3 files changed, 19 insertions(+) create mode 100644 .github/workflows/tidy_checks.yml create mode 120000 .perltidyrc create mode 100644 .tidyallrc diff --git a/.github/workflows/tidy_checks.yml b/.github/workflows/tidy_checks.yml new file mode 100644 index 0000000..79fbdf2 --- /dev/null +++ b/.github/workflows/tidy_checks.yml @@ -0,0 +1,15 @@ +--- +name: tidyall +on: [push, pull_request] + +jobs: + tidyall: + runs-on: ubuntu-latest + container: + image: registry.opensuse.org/devel/openqa/containers/os-autoinst_dev + steps: + - uses: actions/checkout@v4 + - name: Static analysis + run: | + git config --global --add safe.directory '*' + ./external/os-autoinst-common/tools/tidyall --check-only $(git ls-files) diff --git a/.perltidyrc b/.perltidyrc new file mode 120000 index 0000000..8165c13 --- /dev/null +++ b/.perltidyrc @@ -0,0 +1 @@ +external/os-autoinst-common/.perltidyrc \ No newline at end of file diff --git a/.tidyallrc b/.tidyallrc new file mode 100644 index 0000000..d4c7a45 --- /dev/null +++ b/.tidyallrc @@ -0,0 +1,3 @@ +[PerlTidy] +select = **/*.{pl,pm,t} tools/tidyall tools/perlcritic tools/update-deps +argv = --profile=$ROOT/.perltidyrc