Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Lighthouse CI workflow and configuration; remove old image compression workflow #5

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions .github/workflows/calibreapp-image-actions.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Lighthouse CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.5

- name: Install dependencies
run: bun install

- name: Build project
run: bun run build

- name: Install and Run Lighthouse CI
run: |
bun add -g @lhci/[email protected]
bunx lhci autorun
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

.lighthouseci
Binary file modified bun.lockb
Binary file not shown.
15 changes: 15 additions & 0 deletions lighthouserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
ci: {
collect: {
numberOfRuns: 3,
url: ['http://localhost:3000/'],
startServerCommand: 'bun run start'
},
upload: {
target: 'temporary-public-storage'
},
assert: {
preset: 'lighthouse:recommended'
}
}
};
Loading