ci: run test steps in parallel
This commit is contained in:
parent
7c288f93f0
commit
0b190681f1
2 changed files with 10 additions and 3 deletions
|
@ -9,16 +9,20 @@ ci:
|
|||
- http://localhost/usage/getting-started/
|
||||
settings:
|
||||
chromeFlags: "--no-sandbox"
|
||||
onlyCategories: ['performance', 'accessibility', 'best-practices', 'seo']
|
||||
skipAudits: ["color-contrast", "uses-long-cache-ttl", "csp-xss", "bf-cache", "is-crawlable", "image-size-responsive"]
|
||||
assert:
|
||||
preset: "lighthouse:no-pwa"
|
||||
assertions:
|
||||
color-contrast: off
|
||||
uses-long-cache-ttl: off
|
||||
csp-xss: off
|
||||
# FIXME: https://github.com/GoogleChrome/lighthouse/issues/14957
|
||||
bf-cache: off
|
||||
is-crawlable: off
|
||||
image-size-responsive: off
|
||||
tap-targets: warn
|
||||
unsized-images: warn
|
||||
image-size-responsive: warn
|
||||
# FIXME: https://github.com/GoogleChrome/lighthouse/issues/11460
|
||||
categories:performance:
|
||||
- warn
|
||||
|
|
|
@ -32,19 +32,22 @@ steps:
|
|||
|
||||
html-validation:
|
||||
image: quay.io/thegeeklab/vnu
|
||||
group: test
|
||||
commands:
|
||||
- vnu --skip-non-html --also-check-css --errors-only --filterfile .vnuignore exampleSite/public
|
||||
|
||||
link-validation:
|
||||
image: quay.io/thegeeklab/link-validator
|
||||
group: test
|
||||
commands:
|
||||
- link-validator --color=always --rate-limit 10 -e https://github.com/thegeeklab/${CI_REPO_NAME}/edit/main/.* -e https://unsplash.com.*
|
||||
- link-validator --color=always --rate-limit 10 --timeout 30 -e https://github.com/thegeeklab/${CI_REPO_NAME}/edit/main/.* -e https://unsplash.com.*
|
||||
environment:
|
||||
LINK_VALIDATOR_BASE_DIR: exampleSite/public
|
||||
LINK_VALIDATOR_RETRIES: "3"
|
||||
|
||||
page-validation:
|
||||
image: quay.io/thegeeklab/lhci:0.11
|
||||
image: quay.io/thegeeklab/lhci:0.12
|
||||
group: test
|
||||
commands:
|
||||
- lhci autorun
|
||||
environment:
|
||||
|
|
Loading…
Reference in a new issue