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/
|
- http://localhost/usage/getting-started/
|
||||||
settings:
|
settings:
|
||||||
chromeFlags: "--no-sandbox"
|
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:
|
assert:
|
||||||
preset: "lighthouse:no-pwa"
|
preset: "lighthouse:no-pwa"
|
||||||
assertions:
|
assertions:
|
||||||
|
color-contrast: off
|
||||||
uses-long-cache-ttl: off
|
uses-long-cache-ttl: off
|
||||||
csp-xss: off
|
csp-xss: off
|
||||||
# FIXME: https://github.com/GoogleChrome/lighthouse/issues/14957
|
# FIXME: https://github.com/GoogleChrome/lighthouse/issues/14957
|
||||||
bf-cache: off
|
bf-cache: off
|
||||||
|
is-crawlable: off
|
||||||
|
image-size-responsive: off
|
||||||
tap-targets: warn
|
tap-targets: warn
|
||||||
unsized-images: warn
|
unsized-images: warn
|
||||||
image-size-responsive: warn
|
|
||||||
# FIXME: https://github.com/GoogleChrome/lighthouse/issues/11460
|
# FIXME: https://github.com/GoogleChrome/lighthouse/issues/11460
|
||||||
categories:performance:
|
categories:performance:
|
||||||
- warn
|
- warn
|
||||||
|
|
|
@ -32,19 +32,22 @@ steps:
|
||||||
|
|
||||||
html-validation:
|
html-validation:
|
||||||
image: quay.io/thegeeklab/vnu
|
image: quay.io/thegeeklab/vnu
|
||||||
|
group: test
|
||||||
commands:
|
commands:
|
||||||
- vnu --skip-non-html --also-check-css --errors-only --filterfile .vnuignore exampleSite/public
|
- vnu --skip-non-html --also-check-css --errors-only --filterfile .vnuignore exampleSite/public
|
||||||
|
|
||||||
link-validation:
|
link-validation:
|
||||||
image: quay.io/thegeeklab/link-validator
|
image: quay.io/thegeeklab/link-validator
|
||||||
|
group: test
|
||||||
commands:
|
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:
|
environment:
|
||||||
LINK_VALIDATOR_BASE_DIR: exampleSite/public
|
LINK_VALIDATOR_BASE_DIR: exampleSite/public
|
||||||
LINK_VALIDATOR_RETRIES: "3"
|
LINK_VALIDATOR_RETRIES: "3"
|
||||||
|
|
||||||
page-validation:
|
page-validation:
|
||||||
image: quay.io/thegeeklab/lhci:0.11
|
image: quay.io/thegeeklab/lhci:0.12
|
||||||
|
group: test
|
||||||
commands:
|
commands:
|
||||||
- lhci autorun
|
- lhci autorun
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue