From 184c0d260bc71c1de1dca58400b8af4b3247eb10 Mon Sep 17 00:00:00 2001 From: Restioson Date: Tue, 22 Oct 2024 15:16:18 +0200 Subject: [PATCH] fixup! chore(ci): set up Lighthouse auditing in CI --- .github/workflows/testing.yml | 3 ++- app/lighthouserc.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 259e1bf..1612668 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -103,10 +103,11 @@ jobs: run: cd app && lhci autorun - name: TEST if: always() - run: + run: | ls -al . ls -al app/ ls -al app/.lighthouseci/ + ls -al ${{ github.workspace }}/app/.lighthouseci/ - name: Archive Lighthouse results if: always() # Ensure results are uploaded on failure too uses: actions/upload-artifact@v4 diff --git a/app/lighthouserc.js b/app/lighthouserc.js index ac4a869..94769ad 100644 --- a/app/lighthouserc.js +++ b/app/lighthouserc.js @@ -4,8 +4,8 @@ module.exports = { ci: { collect: { numberOfRuns: 1, // We don't care about variable page performance metrics in CI - just static asserts - startServerCommand: `DB_USER=sadilar DB_PASSWORD=sadilar ` - + "python manage.py runserver localhost:3000 & touch debug.log && tail -f debug.log", + startServerCommand: `PYTHONUNBUFFERED=1 DB_USER=sadilar DB_PASSWORD=sadilar ` + + "python manage.py runserver localhost:3000", startServerReadyPattern: "Starting development server at", url: [ "http://localhost:3000",