Skip to content

Commit

Permalink
Merge pull request #49 from okurz/feature/tests2
Browse files Browse the repository at this point in the history
Provide Makefile targets for additional checks
  • Loading branch information
mergify[bot] authored Feb 13, 2024
2 parents db78c61 + d3c3627 commit 19057a0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 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
4 changes: 2 additions & 2 deletions .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ jobs:
- uses: actions/checkout@v4
- uses: docker://registry.opensuse.org/home/okurz/container/containers/tumbleweed:yamllint
with:
entrypoint: yamllint
args: -c .yamllint --strict ./ --format github
entrypoint: make
args: test-yaml
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 --strict ./

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

0 comments on commit 19057a0

Please sign in to comment.