From 16db7595348d6a39446e7a993052199c4a823d6c Mon Sep 17 00:00:00 2001 From: tanaya137 Date: Wed, 26 Aug 2026 20:25:12 +0300 Subject: [PATCH 1/2] Add basic build workflow --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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 00000000..03b3f06b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: React Planner CI + +on: + push: + +jobs: + build: + name: Install dependencies and build + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "16.20.2" + + - name: Install Yarn + run: npm install --global yarn@1.22.22 + + - name: Install dependencies + run: yarn install --frozen-lockfile --non-interactive + + - name: Build project + run: yarn build From b816888d73603f98277e326fdf04ae7c283da118 Mon Sep 17 00:00:00 2001 From: tanaya137 Date: Thu, 27 Aug 2026 10:06:32 +0300 Subject: [PATCH 2/2] Add basic smoke test --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03b3f06b..0f9ea2aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,3 +25,22 @@ jobs: - name: Build project run: yarn build + + - name: Smoke test built application + run: | + python3 -m http.server 8080 --directory demo/dist > /tmp/server.log 2>&1 & + server_pid=$! + trap 'kill "$server_pid"' EXIT + + for attempt in 1 2 3 4 5; do + if curl --fail --silent --show-error http://127.0.0.1:8080/ > /dev/null; then + echo "Smoke test passed" + exit 0 + fi + + sleep 1 + done + + echo "Smoke test failed" + cat /tmp/server.log + exit 1