Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🔥 chore: remove obsolete Lighthouse reporting (#21840)

Innei9708f286c9f3
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index e1c0d29077b..1f0b1cb9f05 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -16,7 +16,6 @@ on:
- '.github/workflows/sync*.y*ml'
- '.github/workflows/auto-*.yml'
- '.github/workflows/manual-*.yml'
- - '.github/workflows/lighthouse.yml'
- '.github/workflows/bundle-analyzer.yml'
pull_request:
paths-ignore:
@@ -30,7 +29,6 @@ on:
- '.github/workflows/sync*.y*ml'
- '.github/workflows/auto-*.yml'
- '.github/workflows/manual-*.yml'
- - '.github/workflows/lighthouse.yml'
- '.github/workflows/bundle-analyzer.yml'
permissions:
diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml
deleted file mode 100644
index 0d737d53871..00000000000
--- a/.github/workflows/lighthouse.yml
+++ /dev/null
@@ -1,64 +0,0 @@
-name: Lighthouse Badger
-
-env:
- TOKEN_NAME: 'GH_TOKEN'
- REPO_BRANCH: 'lobehub/lobe-chat lighthouse'
- USER_NAME: 'lobehubbot'
- USER_EMAIL: '[email protected]'
- AUDIT_TYPE: 'both'
- MOBILE_LIGHTHOUSE_PARAMS: '--throttling.cpuSlowdownMultiplier=2'
- DESKTOP_LIGHTHOUSE_PARAMS: '--preset=desktop --throttling.cpuSlowdownMultiplier=1'
- COMMIT_MESSAGE: '🤖 chore: Lighthouse Results Refreshed'
-
-on:
- schedule:
- - cron: '0 0 * * *' # every day
- workflow_dispatch:
-
-jobs:
- lighthouse-badger-advanced:
- name: ${{ matrix.NAME }}
- runs-on: ubuntu-24.04
- timeout-minutes: 8
- strategy:
- fail-fast: false
- matrix:
- include:
- - NAME: 'LobeChat | Chat'
- URLS: 'https://lobechat.com/chat'
- BADGES_ARGS: '-b pagespeed -o lighthouse/chat -r'
- COMMIT_MESSAGE: '🤖 chore: Lighthouse Results | Chat'
- - NAME: 'LobeChat | Market'
- URLS: 'https://lobechat.com/discover'
- BADGES_ARGS: '-b pagespeed -o lighthouse/discover -r'
- COMMIT_MESSAGE: '🤖 chore: Lighthouse Results | Discover'
-
- steps:
- - name: Preparatory Tasks
- run: |
- REPOSITORY=`expr "${{ env.REPO_BRANCH }}" : "\([^ ]*\)"`
- BRANCH=`expr "${{ env.REPO_BRANCH }}" : ".* \([^ ]*\)"`
- echo "REPOSITORY=$REPOSITORY" >> $GITHUB_ENV
- echo "BRANCH=$BRANCH" >> $GITHUB_ENV
- env:
- REPO_BRANCH: ${{ matrix.REPO_BRANCH || env.REPO_BRANCH }}
- - uses: actions/checkout@v7
- with:
- repository: ${{ env.REPOSITORY }}
- token: ${{ secrets[matrix.TOKEN_NAME] || secrets[env.TOKEN_NAME] }}
- ref: ${{ env.BRANCH }}
- - uses: actions/checkout@v7
- with:
- repository: 'myactionway/lighthouse-badges'
- path: temp_lighthouse_badges_nested
- - uses: myactionway/[email protected]
- with:
- urls: ${{ matrix.URLS }}
- badges_args: ${{ matrix.BADGES_ARGS }}
- audit_type: ${{ matrix.AUDIT_TYPE || env.AUDIT_TYPE }}
- mobile_lighthouse_params: ${{ matrix.MOBILE_LIGHTHOUSE_PARAMS || env.MOBILE_LIGHTHOUSE_PARAMS }}
- desktop_lighthouse_params: ${{ matrix.DESKTOP_LIGHTHOUSE_PARAMS || env.DESKTOP_LIGHTHOUSE_PARAMS }}
- user_name: ${{ matrix.USER_NAME || env.USER_NAME }}
- user_email: ${{ matrix.USER_EMAIL || env.USER_EMAIL }}
- commit_message: ${{ matrix.COMMIT_MESSAGE || env.COMMIT_MESSAGE }}
- max_push_attempts: 5
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 4136491725b..ca7cdc3b09e 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -16,7 +16,6 @@ on:
- '.github/workflows/sync*.y*ml'
- '.github/workflows/auto-*.yml'
- '.github/workflows/manual-*.yml'
- - '.github/workflows/lighthouse.yml'
- '.github/workflows/bundle-analyzer.yml'
pull_request:
paths-ignore:
@@ -30,7 +29,6 @@ on:
- '.github/workflows/sync*.y*ml'
- '.github/workflows/auto-*.yml'
- '.github/workflows/manual-*.yml'
- - '.github/workflows/lighthouse.yml'
- '.github/workflows/bundle-analyzer.yml'
permissions:
diff --git a/docs/development/others/lighthouse.mdx b/docs/development/others/lighthouse.mdx
deleted file mode 100644
index 570dbd5c147..00000000000
--- a/docs/development/others/lighthouse.mdx
+++ /dev/null
@@ -1,39 +0,0 @@
----
-title: Lighthouse Reports
-description: Explore Lighthouse reports for chat and discover pages on LobeHub.
-tags:
- - Lighthouse Reports
- - Chat Page
- - Discover Page
----
-
-# Lighthouse Reports
-
-## Chat Page
-
-> **Info**\
-> [https://LobeHub.com/chat](https://LobeHub.com/chat)
-
-| Desktop | Mobile |
-| :-----------------------------------------: | :----------------------------------------: |
-| ![][chat-desktop] | ![][chat-mobile] |
-| [⚡️ Lighthouse Report][chat-desktop-report] | [⚡️ Lighthouse Report][chat-mobile-report] |
-
-## Discover Page
-
-> **Info**\
-> [https://LobeHub.com/discover](https://LobeHub.com/discover)
-
-| Desktop | Mobile |
-| :---------------------------------------------: | :--------------------------------------------: |
-| ![][discover-desktop] | ![][discover-mobile] |
-| [⚡️ Lighthouse Report][discover-desktop-report] | [⚡️ Lighthouse Report][discover-mobile-report] |
-
-[chat-desktop]: https://raw.githubusercontent.com/lobehub/lobehub/lighthouse/lighthouse/chat/desktop/pagespeed.svg
-[chat-desktop-report]: https://lobehub.github.io/lobehub/lighthouse/chat/desktop/LobeHub_com_chat.html
-[chat-mobile]: https://raw.githubusercontent.com/lobehub/lobehub/lighthouse/lighthouse/chat/mobile/pagespeed.svg
-[chat-mobile-report]: https://lobehub.github.io/lobehub/lighthouse/chat/mobile/LobeHub_com_chat.html
-[discover-desktop]: https://raw.githubusercontent.com/lobehub/lobehub/lighthouse/lighthouse/discover/desktop/pagespeed.svg
-[discover-desktop-report]: https://lobehub.github.io/lobehub/lighthouse/discover/desktop/LobeHub_com_discover.html
-[discover-mobile]: https://raw.githubusercontent.com/lobehub/lobehub/lighthouse/lighthouse/discover/mobile/pagespeed.svg
-[discover-mobile-report]: https://lobehub.github.io/lobehub/lighthouse/discover/mobile/LobeHub_com_discover.html
diff --git a/docs/development/others/lighthouse.zh-CN.mdx b/docs/development/others/lighthouse.zh-CN.mdx
deleted file mode 100644
index 814c68bab09..00000000000
--- a/docs/development/others/lighthouse.zh-CN.mdx
+++ /dev/null
@@ -1,40 +0,0 @@
----
-title: Lighthouse 测试报告
-description: 查看Lighthouse测试报告,了解聊天和发现页面的性能表现。
-tags:
- - Lighthouse
- - 测试报告
- - 聊天页面
- - 发现页面
----
-
-# Lighthouse 测试报告
-
-## Chat 聊天页面
-
-> **Info**\
-> [https://LobeHub.com/chat](https://LobeHub.com/chat)
-
-| Desktop | Mobile |
-| :-----------------------------------------: | :----------------------------------------: |
-| ![][chat-desktop] | ![][chat-mobile] |
-| [⚡️ Lighthouse Report][chat-desktop-report] | [⚡️ Lighthouse Report][chat-mobile-report] |
-
-## Discover 发现页面
-
-> **Info**\
-> [https://LobeHub.com/discover](https://LobeHub.com/discover)
-
-| Desktop | Mobile |
-| :---------------------------------------------: | :--------------------------------------------: |
-| ![][discover-desktop] | ![][discover-mobile] |
-| [⚡️ Lighthouse Report][discover-desktop-report] | [⚡️ Lighthouse Report][discover-mobile-report] |
-
-[chat-desktop]: https://raw.githubusercontent.com/lobehub/lobehub/lighthouse/lighthouse/chat/desktop/pagespeed.svg
-[chat-desktop-report]: https://lobehub.github.io/lobehub/lighthouse/chat/desktop/LobeHub_com_chat.html
-[chat-mobile]: https://raw.githubusercontent.com/lobehub/lobehub/lighthouse/lighthouse/chat/mobile/pagespeed.svg
-[chat-mobile-report]: https://lobehub.github.io/lobehub/lighthouse/chat/mobile/LobeHub_com_chat.html
-[discover-desktop]: https://raw.githubusercontent.com/lobehub/lobehub/lighthouse/lighthouse/discover/desktop/pagespeed.svg
-[discover-desktop-report]: https://lobehub.github.io/lobehub/lighthouse/discover/desktop/LobeHub_com_discover.html
-[discover-mobile]: https://raw.githubusercontent.com/lobehub/lobehub/lighthouse/lighthouse/discover/mobile/pagespeed.svg
-[discover-mobile-report]: https://lobehub.github.io/lobehub/lighthouse/discover/mobile/LobeHub_com_discover.html