diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index f64552d..cfa40a6 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -59,4 +59,33 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + uses: actions/deploy-pages@v4 + + test: + env: + LHCI_GITHUB_APP_TOKEN: $ {{ secrets.LHCI_GITHUB_APP_TOKEN }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 # Not needed if lastUpdated is not enabled + # - uses: pnpm/action-setup@v3 # Uncomment this block if you're using pnpm + # with: + # version: 9 # Not needed if you've set "packageManager" in package.json + # - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm # or pnpm / yarn + - name: Setup Pages + uses: actions/configure-pages@v4 + - name: Install dependencies + run: npm ci # or pnpm install / yarn install / bun install + - name: Build with VitePress + run: npm run home:build + - name: run Lighthouse CI + run: | + npm install -g @lhci/cli@0.14.x + lhci autorun \ No newline at end of file diff --git a/home/.vitepress/config.mts b/home/.vitepress/config.mts index f872130..94f4cbd 100644 --- a/home/.vitepress/config.mts +++ b/home/.vitepress/config.mts @@ -31,6 +31,9 @@ export default defineConfig({ ['meta', { name: 'twitter:image', content: 'https://collapselauncher.com/img/banner.webp' }], ['meta', { name: 'robots', content: 'index, follow' }], ['meta', { name: 'author', content: 'Collapse Launcher Team' }], + ['link', { rel: 'preload', href: '/img/logo.webp', as: 'image'}], + ['link', { rel: 'preload', href: 'https://fonts.gstatic.com/s/outfit/v11/QGYvz_MVcBeNP4NJtEtq.woff2', as: 'font', type: 'font/woff2', crossorigin: 'anonymous'}], + ['link', { rel: 'preload', href: 'https://fonts.gstatic.com/s/outfit/v11/QGYvz_MVcBeNP4NJuktqQ4E.woff2', as: 'font', type: 'font/woff2', crossorigin: 'anonymous'}], ], appearance: 'dark', themeConfig: { diff --git a/home/scripts/index.logo.vue b/home/scripts/index.logo.vue index 2ba4c77..ce84a94 100644 --- a/home/scripts/index.logo.vue +++ b/home/scripts/index.logo.vue @@ -3,13 +3,13 @@
-
+ Collapse vTuber logo
I know, it's not a good one. But at least we made it lol
~ neon-nyan
- + Banner; Art by Rafa GI Nahida Background Credit: Rafa on Pixiv diff --git a/lighthouserc.js b/lighthouserc.js new file mode 100644 index 0000000..54a2c81 --- /dev/null +++ b/lighthouserc.js @@ -0,0 +1,11 @@ +module.exports = { + ci: { + collect: { + staticDistDir: './home/.vitepress/dist/', + startServerCommand: 'npm run home:preview' + }, + upload: { + target: 'temporary-public-storage', + }, + }, + }; \ No newline at end of file