From b633e3f2bd7bd217d53a9e5448b59d887c25746d Mon Sep 17 00:00:00 2001 From: aswin Date: Sun, 28 Jun 2026 20:40:21 +0530 Subject: [PATCH] CI: build the image on PRs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit build.yml only runs on push to main (and pushes images), so PRs had no check to gate on. Add a pull_request workflow that docker-builds the same image without pushing — fails the PR if the frontend or backend won't build. Required by branch protection on main. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f20166b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,14 @@ +name: CI + +on: + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + # Builds the same image the deploy uses, without pushing — fails the PR + # if the frontend bundle or backend deps don't build. + - run: docker build .