Add config to pa11y to workaround github actions issue (#1933)

fixes #1932
This commit is contained in:
Jonathan Wren 2024-10-01 20:28:11 -07:00 committed by GitHub
parent af1b9f128e
commit de79733957
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,7 +41,14 @@ def generate_pa11y_config_from_sitemap():
urls += [url["loc"] for url in xml_sitemap["urlset"]["url"]] urls += [url["loc"] for url in xml_sitemap["urlset"]["url"]]
with open(CONFIG_FILENAME, "w") as f: with open(CONFIG_FILENAME, "w") as f:
f.write(json.dumps({"urls": urls})) f.write(
json.dumps(
{
"defaults": {"chromeLaunchConfig": {"args": ["--no-sandbox"]}},
"urls": urls,
}
)
)
def output_file(file): def output_file(file):