-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use pa11y-ci instead of pa11y #294
Conversation
Main improvement: improved readability of logs, as well as "potential" performance improvements.
Thanks. This is a great improvement as the current output isn't fit for purpose IMO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only thing I am unclear about is if we need to redefine the targets for this. Can't we just run pa11y-ci on line 108 instead?
The reason being, other tools and processes expect that target to exist
A very reasonable request. Does the latest commit address this? I'm not too deep in the Make ecosystem so I might've missed something :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The .PHONY
targets have changed but not the actual Make commands. Otherwise this all seems fine.
@@ -58,10 +58,10 @@ sp-woke-install: | |||
{ echo "Installing \"woke\" snap... \n"; sudo snap install woke; } | |||
|
|||
sp-pa11y-install: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sp-pa11y-install: | |
sp-pa11y-ci-install: |
Makefile.sp
Outdated
@@ -104,8 +104,8 @@ sp-woke: sp-woke-install | |||
woke $(ALLFILES) --exit-1-on-failure \ | |||
-c https://github.com/canonical/Inclusive-naming/raw/main/config.yml | |||
|
|||
sp-pa11y: sp-pa11y-install sp-html | |||
find $(BUILDDIR) -name *.html -print0 | xargs -n 1 -0 $(PA11Y) | |||
sp-pa11y: sp-pa11y-ci-install sp-html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sp-pa11y: sp-pa11y-ci-install sp-html | |
sp-pa11y-ci: sp-pa11y-ci-install sp-html |
I think the better approach would be to revert the phony naming changes instead. I don't know why I forgot them but thanks for pointing that out :) |
Done and done, thanks @tarek-y-ismail |
Main improvement: improved readability of logs, as well as "potential" performance improvements due to not having to launch
pa11y
for each file. In addition,pa11y-ci
offers a concurrency option, but that seems to be broken at the moment.pa11y
output:pa11y-ci
output: