diff --git a/.github/lighthouserc.js b/.github/lighthouserc.js deleted file mode 100644 index fc6be56..0000000 --- a/.github/lighthouserc.js +++ /dev/null @@ -1,40 +0,0 @@ -export default { - ci: { - upload: { - target: "temporary-public-storage", - }, - assert: { - preset: "lighthouse:no-pwa", - assertions: { - "uses-responsive-images": "warn", - "is-crawlable": "off", - "uses-rel-preconnect": "warn", // flags Netlify scripts on deploy preview - "csp-xss": "warn", - deprecations: "warn", - "bf-cache": "warn", - }, - }, - settings: { - budgets: [ - { - timings: [ - { - metric: "interactive", - budget: 3000, - }, - { - metric: "first-meaningful-paint", - budget: 2000, - }, - ], - resourceSizes: [ - { - resourceType: "total", - budget: 500, - }, - ], - }, - ], - }, - }, -} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d1a6c66..5721e3c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,25 +1,25 @@ -name: Lighthouse CI for Netlify sites -on: - pull_request: - branches: - - stable -jobs: - build: - runs-on: ubuntu-latest +# name: Lighthouse CI for Netlify sites +# on: +# pull_request: +# branches: +# - stable +# jobs: +# build: +# runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Wait for the Netlify Preview - uses: jakepartusch/wait-for-netlify-action@v1.4 - id: netlify - with: - site_name: "simpixelated" - max_timeout: 120 - - name: Audit URLs using Lighthouse - uses: treosh/lighthouse-ci-action@v10 - with: - urls: | - ${{ steps.netlify.outputs.url }} - ${{ steps.netlify.outputs.url }}/two-year-work-retrospective/ - configPath: "./.github/lighthouserc.js" - temporaryPublicStorage: true +# steps: +# - uses: actions/checkout@v3 +# - name: Wait for the Netlify Preview +# uses: jakepartusch/wait-for-netlify-action@v1.4 +# id: netlify +# with: +# site_name: "simpixelated" +# max_timeout: 120 +# - name: Audit URLs using Lighthouse +# uses: treosh/lighthouse-ci-action@v10 +# with: +# urls: | +# ${{ steps.netlify.outputs.url }} +# ${{ steps.netlify.outputs.url }}/two-year-work-retrospective/ +# configPath: "./.github/lighthouserc.js" +# temporaryPublicStorage: true