From 28cb0635cd2a6b829a68e875f4d422e89f378056 Mon Sep 17 00:00:00 2001 From: Mayank Date: Mon, 24 Aug 2026 13:19:40 +0530 Subject: [PATCH] chore: simplify CI workflow by removing test job and restricting triggers to main branch --- .github/workflows/ci.yml | 53 ++-------------------------------------- 1 file changed, 2 insertions(+), 51 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b6518a..4d1aaee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,63 +2,14 @@ name: CI/CD Pipeline on: push: - branches: [main, develop] + branches: [main] pull_request: - branches: [main, develop] + branches: [main] jobs: - test: - runs-on: ubuntu-latest - - services: - postgres: - image: postgres:15 - env: - POSTGRES_PASSWORD: postgres - POSTGRES_DB: test_db - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - - 5432:5432 - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '18' - cache: 'pnpm' - - - name: Install pnpm - run: npm install -g pnpm - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Run linting - run: pnpm lint - - - name: Type checking - run: pnpm typecheck - - - name: Build application - run: pnpm build - - - name: Run database migrations - run: pnpm db:migrate - env: - DATABASE_URL: postgresql://postgres:postgres@localhost:5432/test_db build-and-push: - needs: test runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' - steps: - name: Checkout code uses: actions/checkout@v4