From 67bb9b5d0dafe4fa020eb54ab232e2a82828c815 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 16 Jul 2020 10:13:40 +0200 Subject: [PATCH] first draft to test lhci report uploading --- .drone.yml | 21 ++++++++++++++++++--- .gitignore | 1 + .lighthouserc.yml | 3 +++ 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 586dbfc..19d457b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -36,10 +36,25 @@ steps: LINK_VALIDATOR_BASE_DIR: exampleSite/public - name: page-validation - image: patrickhulce/lhci-client - user: root + image: xoxys/lhci commands: - lhci autorun + environment: + LHCI_SERVER_URL: https://example.com/${DRONE_REPO_NAME}/ + +- name: page-validation-upload + image: plugins/s3 + settings: + access_key: + from_secret: s3_access_key + bucket: drone-artifact + endpoint: https://sp.rknet.org + path_style: true + secret_key: + from_secret: s3_secret_access_key + source: lhci_reports/dist/ + strip_prefix: lhci_reports/dist/ + target: /${DRONE_REPO_NAME} trigger: ref: @@ -216,6 +231,6 @@ depends_on: --- kind: signature -hmac: 12880ca35134fefa3baf9363fa7484c28dc6c3e9fda2d2c5054de95364fbf9e1 +hmac: 28fffd7ae5434a2cb6369b8a240ee9fc14d02998fc06c7ac3e3ab9a1e3313b05 ... diff --git a/.gitignore b/.gitignore index 5457267..a5e82eb 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ dist/ tmp/ node_modules/ +lhci_reports/ exampleSite/themes/ exampleSite/public/ diff --git a/.lighthouserc.yml b/.lighthouserc.yml index efc5c01..b6fdc6f 100644 --- a/.lighthouserc.yml +++ b/.lighthouserc.yml @@ -18,3 +18,6 @@ ci: first-contentful-paint: off first-meaningful-paint: off largest-contentful-paint: off + upload: + target: filesystem + outputDir: lhci_reports