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 7cde819 commit 184c0d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions app/lighthouserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 184c0d2

Please sign in to comment.