chore(ci): remove the Update Shadcn/UI Components workflow (#432) #1121
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: CI | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| push: | |
| branches: [main] | |
| jobs: | |
| test-nextjs: | |
| name: Test and Lint Next.js | |
| runs-on: ubuntu-latest | |
| env: | |
| POSTGRES_URL: postgres://postgres:postgres@localhost:5432/postgres | |
| services: | |
| postgres: | |
| image: postgres:16.4-alpine | |
| env: | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_DB: postgres | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 5432:5432 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version-file: '.bun-version' | |
| - name: Cache Bun | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.bun/install/cache | |
| key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-bun- | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Copy environment variables | |
| run: cp .env.example .env | |
| - name: Run ESLint | |
| run: bun run lint | |
| - name: Run TypeScript type checking | |
| run: bun run typecheck | |
| - name: Check code formatting | |
| run: bun run format:check | |
| - name: Run tests | |
| run: bun run test | |
| - name: Run Knip | |
| run: bun run knip | |
| - name: Build application | |
| run: bun run build |