Skip to content

Commit

Permalink
Provide Makefile targets for additional checks
Browse files Browse the repository at this point in the history
Having all usual checks available over the Makefile makes it easier for
developers to see what is available and call them.
  • Loading branch information
okurz committed Feb 7, 2024
1 parent a35eda2 commit 44fd63f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/perl-critic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
image: perldocker/perl-tester
steps:
- uses: actions/checkout@v4
- run: ./tools/perlcritic --quiet .
- run: make test-critic
2 changes: 1 addition & 1 deletion .github/workflows/perl-lint-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
image: registry.opensuse.org/devel/openqa/containers/os-autoinst_dev
steps:
- uses: actions/checkout@v4
- run: GITHUB_ACTIONS=1 ./tools/tidyall --check-only --all --quiet
- run: GITHUB_ACTIONS=1 make test-tidy
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,20 @@ update-deps:
tools/update-deps --cpanfile cpanfile

.PHONY: test
test: test-tidy test-author
test: test-tidy test-critic test-yaml test-author

.PHONY: test-tidy
test-tidy:
tools/tidyall --all --check-only

.PHONY: test-critic
test-critic:
tools/perlcritic --quiet .

.PHONY: test-yaml
test-yaml:
yamllint -c .yamllint --strict ./

.PHONY: test-author
test-author:
prove -l -r xt/

0 comments on commit 44fd63f

Please sign in to comment.