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