Run pa11y scans on AWS Lambda.
Download pa11y-lambda.zip
from the releases page, upload to AWS Lambda, and you're good to go.
When you test/run the function, the event
payload should resemble what's found in app/run.js
:
var event = {
url: '18f.gsa.gov',
pa11yOptions: {
standard: 'WCAG2AA'
}
}
The handler should be configured to be index.handler
.
Dependencies:
- Docker
- docker-compose
Clone this repo and cd
into it.
docker-compose build
To add something to the package.json
file:
docker-compose run web npm install --save [name of module]
To modify the function, edit app/index.js
.
To run the task locally:
docker-compose run web node run.js
To package it up for upload to AWS Lambda:
./build-release.sh
The resulting .zip file is suitable for upload to Lambda.
This project is in the worldwide public domain. As stated in CONTRIBUTING:
This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.
All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.