diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 259e1bfa..1612668b 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 ac4a869f..94769ad6 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",