From 9c2937f70078b8866e705b91673a0b5d5cc020c8 Mon Sep 17 00:00:00 2001 From: Restioson Date: Fri, 18 Oct 2024 16:34:06 +0200 Subject: [PATCH] fixup! chore(ci): set up Lighthouse auditing in CI --- .github/workflows/testing.yml | 5 +---- app/lighthouserc.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index b0876c8..45a1ba6 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -62,9 +62,6 @@ jobs: - name: Run Lighthouse run: | cd app/ - DB_NAME=term_db DB_USER=sadilar DB_PASSWORD=sadilar python manage.py migrate + DB_NAME=test_db_1 DB_USER=sadilar DB_PASSWORD=sadilar python manage.py migrate echo done migrations lhci autorun - env: - DJANGO_SETTINGS_MODULE: app.settings - DATABASE_URL: postgres://sadilar:sadilar@localhost:5432/test_db diff --git a/app/lighthouserc.js b/app/lighthouserc.js index 9000a3c..9e5ce16 100644 --- a/app/lighthouserc.js +++ b/app/lighthouserc.js @@ -3,7 +3,7 @@ let env = process.env; module.exports = { ci: { collect: { - startServerCommand: `DB_NAME=term_db DB_USER=sadilar DB_PASSWORD=sadilar` + startServerCommand: `DB_NAME=test_db_1 DB_USER=sadilar DB_PASSWORD=sadilar` + "python manage.py runserver localhost:3000", url: [ "http://localhost:3000",