Compare commits

...

6 Commits

Author SHA1 Message Date
Robert Kaussow 2dfb0f277f
chore: fix script formatting
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2021-05-21 15:44:29 +02:00
Robert Kaussow ecb35f8efc
Revert "fix: dont fail if reports were written"
continuous-integration/drone/push Build is passing Details
This reverts commit cc78d173b7.
2021-05-21 15:27:04 +02:00
Robert Kaussow cc78d173b7
fix: dont fail if reports were written
continuous-integration/drone/push Build is passing Details
2021-05-21 15:14:44 +02:00
Renovator Bot 72830cce0b chore(deps): update dependency mikefarah/yq to v4.9.2 (#54)
continuous-integration/drone/push Build is passing Details
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [mikefarah/yq](https://github.com/mikefarah/yq) | patch | `v4.9.0` -> `v4.9.2` |

---

### Release Notes

<details>
<summary>mikefarah/yq</summary>

### [`v4.9.2`](https://github.com/mikefarah/yq/releases/v4.9.2)

[Compare Source](https://github.com/mikefarah/yq/compare/v4.9.1...v4.9.2)

Bug Fixes:

-   Fixed nested array referencing ([#&#8203;814](https://github.com/mikefarah/yq/issues/814))
-   Fixed a number of readonly ops not to inadvertently modify the yaml context

### [`v4.9.1`](https://github.com/mikefarah/yq/releases/v4.9.1)

[Compare Source](https://github.com/mikefarah/yq/compare/v4.9.0...v4.9.1)

-   Added ability to escape double quotes within a string expression (e.g. "cat\\"dog")
-   Fixed handling of empty matches in equals op (when one of lhs or rhs expressions do not match anything and the other is null)

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Reviewed-on: docker/lhci#54
Co-authored-by: Renovator Bot <renovator@rknet.org>
Co-committed-by: Renovator Bot <renovator@rknet.org>
2021-05-21 14:38:03 +02:00
Renovator Bot f540188dce chore(deps): update dependency mikefarah/yq to v4.9.0 (#53)
continuous-integration/drone/push Build is passing Details
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [mikefarah/yq](https://github.com/mikefarah/yq) | minor | `v4.8.0` -> `v4.9.0` |

---

### Release Notes

<details>
<summary>mikefarah/yq</summary>

### [`v4.9.0`](https://github.com/mikefarah/yq/releases/v4.9.0)

[Compare Source](https://github.com/mikefarah/yq/compare/v4.8.0...v4.9.0)

-   Adds `unique` and `unique_by` operators (<https://mikefarah.gitbook.io/yq/operators/unique>)
-   Adds `any` and `all` boolean operators (<https://mikefarah.gitbook.io/yq/operators/boolean-operators>)
-   Fixes `with_entries` bug [#&#8203;810](https://github.com/mikefarah/yq/issues/810)

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Reviewed-on: docker/lhci#53
Co-authored-by: Renovator Bot <renovator@rknet.org>
Co-committed-by: Renovator Bot <renovator@rknet.org>
2021-05-14 09:32:33 +02:00
Renovator Bot 098ef61c27 chore(deps): update node.js
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2021-05-12 20:01:09 +00:00
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
FROM node:lts-alpine3.13@sha256:7021600941a9caa072c592b6a89cec80e46cb341d934f1868220f5786f236f60
FROM node:lts-alpine3.13@sha256:efadbdd1ef5f84a93729185767b132606f211a98921d2f30464550a6e5f62437
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
@ -13,7 +13,7 @@ ARG YQ_VERSION
# renovate: datasource=npm depName=@lhci/cli
ENV LHCI_VERSION="${BUILD_VERSION:-0.7.2}"
# renovate: datasource=github-releases depName=mikefarah/yq
ENV YQ_VERSION="${YQ_VERSION:-v4.8.0}"
ENV YQ_VERSION="${YQ_VERSION:-v4.9.2}"
ENV LHCI_BASE_DIR=/drone/src \
FORCE_COLOR=true \

View File

@ -10,16 +10,16 @@ if [ -f "$CONFIG" ] && echo "$OUT" | grep -q "Done running Lighthouse"; then
UPLOAD_TARGET=$(yq e '.ci.upload.target // ""' "${CONFIG}")
UPLOAD_OUTPUT_DIR=$(yq e '.ci.upload.outputDir // ""' "${CONFIG}")
if [ "${UPLOAD_TARGET}" = "filesystem" ] && [ -n "${UPLOAD_OUTPUT_DIR}" ] ; then
if [ "${UPLOAD_TARGET}" = "filesystem" ] && [ -n "${UPLOAD_OUTPUT_DIR}" ]; then
MANIFEST=${UPLOAD_OUTPUT_DIR%/}/manifest.json
DIST="${LHCI_BASE_DIR%/}/${UPLOAD_OUTPUT_DIR%/}/dist"
mkdir -p "${DIST}"
if [ -f "$CONFIG" ]; then
cp /templates/summary.md "${DIST}/summary.md"
cp /templates/summary.md "${DIST}/summary.md"
printf "\nPost-process report files...\n"
for ITEM in $(jq -r '.[] | select( .isRepresentativeRun == true ) | @base64' < "${MANIFEST}"); do
for ITEM in $(jq -r '.[] | select( .isRepresentativeRun == true ) | @base64' <"${MANIFEST}"); do
JSON=$(echo "${ITEM}" | base64 -d)
FILE_DATE=$(date '+%Y%m%d%H%M')
@ -38,7 +38,7 @@ if [ -f "$CONFIG" ] && echo "$OUT" | grep -q "Done running Lighthouse"; then
cp "${FILENAME}" "${DIST}/${FILENAME_NEW}.html"
echo "Report for ${URL} will be uploaded to ${DOWNLOAD}"
echo "| [Link]("${DOWNLOAD}") | \`${URL}\` | $(echo "scale=0;($PERF*100)/1" | bc) % | $(echo "scale=0;($ACCESS*100)/1" | bc) % | $(echo "scale=0;($PRACTICE*100)/1" | bc) % | $(echo "scale=0;($SEO*100)/1" | bc) % | $(echo "scale=0;($PWA*100)/1" | bc) % |" >> "${DIST}/summary.md"
echo "| [Link](${DOWNLOAD}) | \`${URL}\` | $(echo "scale=0;($PERF*100)/1" | bc) % | $(echo "scale=0;($ACCESS*100)/1" | bc) % | $(echo "scale=0;($PRACTICE*100)/1" | bc) % | $(echo "scale=0;($SEO*100)/1" | bc) % | $(echo "scale=0;($PWA*100)/1" | bc) % |" >>"${DIST}/summary.md"
done
else
printf "\nPost-processing skipped. Manifest not found!\n"