From d3b4329a6065783aea8cea121eca492d9a66a89d Mon Sep 17 00:00:00 2001 From: moslem-asaad Date: Wed, 5 Mar 2025 13:55:37 +0200 Subject: [PATCH] update preproduction workflow --- .github/workflows/preproduction.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/preproduction.yml b/.github/workflows/preproduction.yml index 471a1fcb4b..3a74b32b72 100644 --- a/.github/workflows/preproduction.yml +++ b/.github/workflows/preproduction.yml @@ -120,6 +120,33 @@ jobs: with: name: jmeter-test-results path: reports/ + + lighthouse-tests: + runs-on: ubuntu-latest + needs: [api-tests, selenium-tests, notification-service-tests] + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Install Lighthouse CLI + run: npm install -g lighthouse + + - name: Run Lighthouse Performance Audit + run: | + lighthouse https://fox-one-promptly.ngrok-free.app \ + --output=json \ + --output=html \ + --output-path=./lighthouse.html \ + --chrome-flags="--headless" + + - name: Debug - List Files + run: ls -alh + + - name: Upload Lighthouse Report + uses: actions/upload-artifact@v4 + with: + name: lighthouse-report + path: lighthouse-report.html