feat(og): add basic OpenGraph metadata #218
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: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: main | |
jobs: | |
build: | |
env: | |
DATABASE_URL: 'postgres://example.com' | |
GOOGLE_OAUTH_CLIENT_ID: 'id.google.com' | |
GOOGLE_OAUTH_CLIENT_SECRET: 'secret.google.com' | |
GOOGLE_OAUTH_REDIRECT_URI: 'https://drap.dcs.upd.edu.ph/auth/callback' | |
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 --filter=drap-app lint:html | |
- name: Check CSS | |
run: pnpm --filter=drap-app lint:css | |
- name: Synchronize SvelteKit | |
run: pnpm --filter=drap-app sync | |
- name: Check JavaScript | |
run: pnpm lint:js | |
- name: Check Svelte | |
run: pnpm --filter=drap-app lint:svelte | |
- name: Build App | |
run: pnpm --filter=drap-app build |