diff --git a/.github/actions/build-docs/action.yml b/.github/actions/build-docs/action.yml index 44d6d04..799eff8 100644 --- a/.github/actions/build-docs/action.yml +++ b/.github/actions/build-docs/action.yml @@ -2,16 +2,16 @@ name: Build Docs description: Build docs pages inside /docs directory runs: - using: 'composite' - steps: - - name: Install dependencies - run: bun install - shell: bash + using: "composite" + steps: + - name: Install dependencies + run: bun install + shell: bash - - name: Build with Next.js - run: bun next build - shell: bash + - name: Build with Next.js + run: bun next build + shell: bash - - name: Export static HTML with Next.js - run: bun next export - shell: bash + - name: Export static HTML with Next.js + run: bun next export + shell: bash diff --git a/.github/actions/format/action.yml b/.github/actions/format/action.yml new file mode 100644 index 0000000..3257b85 --- /dev/null +++ b/.github/actions/format/action.yml @@ -0,0 +1,13 @@ +name: Format codebase +description: Run prettier to check codebase formatting + +runs: + using: "composite" + steps: + - name: Install dependencies + run: bun install + shell: bash + + - name: Run prettier + run: bun run prettier:check + shell: bash diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 2a2fc68..ea4c643 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,15 +1,16 @@ name: Validate merge requests on: - pull_request: - branches: - - main + pull_request: + branches: + - main jobs: - validate: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - uses: oven-sh/setup-bun@v2 - - uses: ./.github/actions/build-docs + validate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + - uses: ./.github/actions/format + - uses: ./.github/actions/build-docs diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index f0fe1d8..46ce460 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -23,7 +23,7 @@ permissions: # Allow one concurrent deployment concurrency: - group: 'pages' + group: "pages" cancel-in-progress: true jobs: diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..0adf136 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,8 @@ +{ + "printWidth": 110, + "singleQuote": false, + "semi": true, + "useTabs": false, + "tabWidth": 2, + "trailingComma": "es5" +} diff --git a/bun.lockb b/bun.lockb index d373d48..126f247 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/components/Footer.tsx b/components/Footer.tsx index f7a3cad..c690535 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -4,9 +4,7 @@ import styles from "../styles/Layout.module.css"; export default function Footer() { return (