From 14a700712e45812b1d18c66d289b9f55a4397558 Mon Sep 17 00:00:00 2001 From: Sahil Lenka Date: Sun, 18 Jan 2026 18:46:55 +0530 Subject: [PATCH 1/2] Add CI workflow for automated testing - Build and test Docusaurus site on PRs and main branch - Verify Docker images build successfully - Upload build artifacts for verification - Support manual workflow triggers Signed-off-by: Sahil Lenka --- .github/workflows/ci.yml | 61 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 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..02b9bf9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,61 @@ +name: CI + +on: + pull_request: + branches: [main] + push: + branches: [main] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + cache-dependency-path: website/package-lock.json + + - name: Install dependencies + working-directory: ./website + run: npm ci + + - name: Build site + working-directory: ./website + run: npm run build + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: build + path: website/build + + docker: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build dev image + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile.dev + push: false + tags: aboutcode-dev:latest + + - name: Build prod image + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: false + tags: aboutcode-prod:latest From 25d46ef72a3d0fb9a600fd7f8ace90cf84396684 Mon Sep 17 00:00:00 2001 From: Sahil Lenka Date: Sun, 18 Jan 2026 18:51:36 +0530 Subject: [PATCH 2/2] Remove Docker build job from CI Docker support will be added in a separate PR. This CI workflow focuses on building and testing the Docusaurus site. Signed-off-by: Sahil Lenka --- .github/workflows/ci.yml | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02b9bf9..ecc3da9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,28 +34,3 @@ jobs: with: name: build path: website/build - - docker: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build dev image - uses: docker/build-push-action@v5 - with: - context: . - file: ./Dockerfile.dev - push: false - tags: aboutcode-dev:latest - - - name: Build prod image - uses: docker/build-push-action@v5 - with: - context: . - file: ./Dockerfile - push: false - tags: aboutcode-prod:latest