chore: CI/CD, prettier formatting #1
Workflow file for this run
This file contains hidden or 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: frontend | ||
| permissions: | ||
| contents: | ||
| read: all | ||
| write: all | ||
| on: | ||
| push: | ||
| branches: | ||
| - "**" | ||
| paths: | ||
| - "frontend/**" | ||
| jobs: | ||
| format: | ||
| name: format | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Code | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@v2 | ||
| - name: Install Dependencies | ||
| run: cd frontend && bun install | ||
| - name: Format Code | ||
| run: cd frontend && bun run format | ||
| lint: | ||
| name: lint | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Code | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@v2 | ||
| - name: Install Dependencies | ||
| run: cd frontend && bun install | ||
| - name: Lint Code | ||
| run: cd frontend && bun run lint | ||
| test: | ||
| name: test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Code | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@v2 | ||
| - name: Install Dependencies | ||
| run: cd frontend && bun install | ||
| - name: Test Code | ||
| run: cd frontend && bun run test | ||