From 9a2a32d2b25b44a1be8281dafabb1238e5b8c220 Mon Sep 17 00:00:00 2001 From: Nyoman Sunima Date: Sat, 16 Nov 2024 20:54:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=95=20ci:=20udate=20the=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lighthouse.yml | 3 +-- .github/workflows/web-production.yml | 1 + lighthouse/budget.json | 25 ------------------------- 3 files changed, 2 insertions(+), 27 deletions(-) delete mode 100644 lighthouse/budget.json diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index b224e5a..658f4eb 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -22,6 +22,7 @@ jobs: lighthouse: name: Lighthouse Testing the web on Node ${{matrix.node}} runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Checkout code uses: actions/checkout@v4 @@ -31,7 +32,5 @@ jobs: with: urls: | https://nyomansunima.one - budgetPath: ./lighthouse/budget.json uploadArtifacts: true temporaryPublicStorage: true - runs: 3 diff --git a/.github/workflows/web-production.yml b/.github/workflows/web-production.yml index 4aff85e..8481524 100644 --- a/.github/workflows/web-production.yml +++ b/.github/workflows/web-production.yml @@ -27,6 +27,7 @@ jobs: update: name: Update Web App runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Checkout the code uses: actions/checkout@v4 diff --git a/lighthouse/budget.json b/lighthouse/budget.json deleted file mode 100644 index 805e8c5..0000000 --- a/lighthouse/budget.json +++ /dev/null @@ -1,25 +0,0 @@ -[ - { - "path": "/*", - "resourceSizes": [ - { - "resourceType": "document", - "budget": 200 - }, - { - "resourceType": "stylesheet", - "budget": 0 - }, - { - "resourceType": "font", - "budget": 400 - } - ], - "resourceCounts": [ - { - "resourceType": "third-party", - "budget": 80 - } - ] - } -]