diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index c82a621..c3b64f9 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -25,50 +25,12 @@ env: jobs: # ============================================================================= - # Run Tests First - # ============================================================================= - backend-test: - name: Backend Tests - runs-on: ubuntu-latest - permissions: - contents: read - defaults: - run: - working-directory: backend - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: '22' - cache: 'npm' - cache-dependency-path: backend/package-lock.json - - run: npm ci - - run: npx tsc --noEmit - - run: npm run test:run - - frontend-build: - name: Frontend Build - runs-on: ubuntu-latest - permissions: - contents: read - defaults: - run: - working-directory: frontend - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: '22' - cache: 'npm' - cache-dependency-path: frontend/package-lock.json - - run: npm ci - - run: npm run build - - # ============================================================================= - # Build and Push Docker Images (only after tests pass) + # Build and Push Docker Images + # Tests are NOT run here — branch protection on main requires all PR checks + # (backend-test + frontend-build from test.yml) to pass before merge. + # Tags are created from main, so code is already tested. # ============================================================================= build-and-push: - needs: [backend-test, frontend-build] runs-on: ubuntu-latest permissions: contents: read