diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index 81ccd18..5adfb7f 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -7,24 +7,16 @@ on: jobs: lighthouse-test: - if: "!contains(github.event.head_commit.message, '[skip staging]') && !contains(github.event.head_commit.message, '[skip deploy]') && !contains(github.event.head_commit.message, '[skip prod]')" runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@master - - name: Wait for deployment to finish run: sleep 10 - - - name: Audit URLs using Lighthouse - uses: treosh/lighthouse-ci-action@v2 + - name: Audit URL using Lighthouse + uses: jakejarvis/lighthouse-action@master with: - urls: | - https://msfjarvis.dev/ - https://staging.msfjarvis.dev - budgetsPath: ./budgets.json - - - name: Save results - uses: actions/upload-artifact@v1 + url: 'https://msfjarvis.dev/' + - name: Upload results as an artifact + uses: actions/upload-artifact@master with: - name: lighthouse-results - path: '.lighthouseci' + name: report + path: './report' diff --git a/budgets.json b/budgets.json deleted file mode 100644 index 3405091..0000000 --- a/budgets.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - { - "resourceSizes": [ - { - "resourceType": "script", - "budget": 300 - }, - { - "resourceType": "image", - "budget": 100 - }, - { - "resourceType": "third-party", - "budget": 200 - }, - { - "resourceType": "total", - "budget": 1000 - } - ], - "resourceCounts": [ - { - "resourceType": "third-party", - "budget": 10 - }, - { - "resourceType": "total", - "budget": 50 - } - ] - } -]