Skip to content

Commit

Permalink
Enable tidy checks in Ci
Browse files Browse the repository at this point in the history
`.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 <[email protected]>
  • Loading branch information
b10n1k committed Feb 8, 2024
1 parent 2373ded commit b9f34a5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/tidy_checks.yml
Original file line number Diff line number Diff line change
@@ -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)
1 change: 1 addition & 0 deletions .perltidyrc
3 changes: 3 additions & 0 deletions .tidyallrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[PerlTidy]
select = **/*.{pl,pm,t} tools/tidyall tools/perlcritic tools/update-deps
argv = --profile=$ROOT/.perltidyrc

0 comments on commit b9f34a5

Please sign in to comment.