Skip to content

Commit

Permalink
feat(ci): add GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BastiDood committed Jan 25, 2024
1 parent 05c3234 commit 2cc4e35
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 3 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Code Quality

on:
workflow_dispatch:
pull_request:
push:
branches: main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install `pnpm` via Corepack
run: corepack enable
- name: Get `pnpm` Store Directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup `pnpm` Cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: pnpm install
- name: Check Formatters
run: pnpm fmt
- name: Check HTML
run: pnpm lint:html
- name: Check CSS
run: pnpm lint:css
- name: Synchronize SvelteKit
run: pnpm sync
- name: Check JavaScript
run: pnpm lint:js
- name: Check Svelte
run: pnpm lint:svelte
- name: Build Website
run: pnpm build
6 changes: 3 additions & 3 deletions src/app.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare namespace App {
interface Locals {
logger: import('pino').Logger;
}
interface Locals {
logger: import('pino').Logger;
}
}

0 comments on commit 2cc4e35

Please sign in to comment.