Skip to content

ci: update GitHub workflows to improve compatibility and caching #10

ci: update GitHub workflows to improve compatibility and caching

ci: update GitHub workflows to improve compatibility and caching #10

Workflow file for this run

name: Lighthouse CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lighthouse:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Build Next.js app
run: bun run build
uses: actions/cache@v4
with:
path: |
~/.bun/install/cache
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}-
- name: Run Lighthouse CI
run: |
npm install -g @lhci/cli
lhci autorun
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
- name: Upload Lighthouse reports as artifacts
uses: actions/upload-artifact@v4
with:
name: lighthouse-reports
path: ./lighthouserc.cjs