The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
grafana/scripts/generate-a11y-report.sh

28 lines
478 B

#!/usr/bin/env bash
set -x
# Clean up old report
jsonReport="pa11y-ci-results.json"
if [ -f "$jsonReport" ] ; then
rm "$jsonReport"
fi
# Clean up old folder
report="pa11y-ci-report/"
if [ -d "$report" ] ; then
rm -R "$report"
fi
# Run accessibility command
yarn wait-on http://localhost:3000
yarn run -s test:accessibility --json > pa11y-ci-results.json
# Generate HTML report
pa11y-ci-reporter-html
# Start local server
yarn http-server pa11y-ci-report -p 1234