From 2dda62d5e90a38da5d9201ba5a4b7fb625f62896 Mon Sep 17 00:00:00 2001 From: obed vega Date: Thu, 18 Jan 2024 09:07:09 -0800 Subject: [PATCH] Add lighthouse CI --- .github/workflows/lighthouse.yml | 15 +++++++++++++++ budjet.json | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/lighthouse.yml create mode 100644 budjet.json diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml new file mode 100644 index 0000000..a2ed8cb --- /dev/null +++ b/.github/workflows/lighthouse.yml @@ -0,0 +1,15 @@ +name: Lighthouse CI +on: [push, pull_request] +jobs: + lighthouse: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Audit URLs using Lighthouse + uses: treosh/lighthouse-ci-action@v10 + with: + urls: | + https://quickstarts.teradata.com/ + budgetPath: ./budget.json # test performance budgets + uploadArtifacts: true # save results as an action artifacts + temporaryPublicStorage: true # upload lighthouse report to the temporary storage \ No newline at end of file diff --git a/budjet.json b/budjet.json new file mode 100644 index 0000000..370c894 --- /dev/null +++ b/budjet.json @@ -0,0 +1,15 @@ +[ + { + "path": "/*", + "resourceSizes": [ + { + "resourceType": "document", + "budget": 18 + }, + { + "resourceType": "total", + "budget": 200 + } + ] + } + ] \ No newline at end of file