Lighthouse #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Quality | |
on: | |
push: | |
branches: | |
- main | |
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 | |
env: | |
NEXT_TELEMETRY_DISABLED: true | |
NODE_ENV: "production" | |
NEXT_PUBLIC_SITE_URL: "http://localhost:3000" | |
DATABASE_HOST: "localhost" | |
DATABASE_PORT: "5432" | |
DATABASE_USER: "user" | |
DATABASE_PASSWORD: "password" | |
DATABASE_NAME: "database" | |
STORAGE_HOST: "localhost" | |
STORAGE_PORT: "9000" | |
STORAGE_USER: "user" | |
STORAGE_PASSWORD: "password" | |
STORAGE_NAME: "images" | |
FEIDE_CLIENT_ID: " " | |
FEIDE_CLIENT_SECRET: " " | |
FEIDE_AUTHORIZATION_ENDPOINT: "https://auth.dataporten.no/oauth/authorization" | |
FEIDE_TOKEN_ENDPOINT: "https://auth.dataporten.no/oauth/token" | |
FEIDE_USERINFO_ENDPOINT: "https://auth.dataporten.no/openid/userinfo" | |
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 |