Skip to content

Commit

Permalink
fixup! chore(ci): set up Lighthouse auditing in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Restioson committed Oct 22, 2024
1 parent 9add03b commit e4ad1fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ jobs:
run:
ls -al .
ls -al app/
ls -al app/.lighthouseci/
- name: Archive Lighthouse results
if: always() # Ensure results are uploaded on failure too
uses: actions/upload-artifact@v4
with:
name: lighthouse-report
path: app/.lighthouseci/
path: app/.lighthouseci/*
2 changes: 1 addition & 1 deletion app/lighthouserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
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 2>&1",
+ "tail -f debug.log & python manage.py runserver localhost:3000",
startServerReadyPattern: "Starting development server at",
url: [
"http://localhost:3000",
Expand Down

0 comments on commit e4ad1fc

Please sign in to comment.