Skip to content

Commit

Permalink
feat: create lighthouse config and github action
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrusegard committed Sep 20, 2024
1 parent 48dd88a commit 196759c
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 17 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Code Quality

on:
push:
pull_request:
workflow_dispatch:

jobs:
lint-format:
name: Lint & Format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest
- name: Run Biome
run: biome ci .
performance-audit:
name: Performance Audit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install Dependencies
run: bun install --frozen-lockfile
- name: Build
run: bun run build
- name: Setup Lighthouse
run: bun add -g @lhci/[email protected]
- name: Run Lighthouse
run: lhci autorun
17 changes: 0 additions & 17 deletions .github/workflows/lint.yml

This file was deleted.

6 changes: 6 additions & 0 deletions lighthouserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ci:
collect:
url: ['http://localhost:3000/']
startServerCommand: 'bun run start'
upload:
target: 'temporary-public-storage'

0 comments on commit 196759c

Please sign in to comment.