From fd4daefd91143c4ad046cdb8708313cd832c725a Mon Sep 17 00:00:00 2001 From: BrunoQuaresma Date: Tue, 3 Jun 2025 16:10:27 +0000 Subject: [PATCH] chore: verify chat build on CI --- .github/workflows/chat.yml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/chat.yml diff --git a/.github/workflows/chat.yml b/.github/workflows/chat.yml new file mode 100644 index 0000000..bb9ac0d --- /dev/null +++ b/.github/workflows/chat.yml @@ -0,0 +1,43 @@ +name: Chat + +on: + push: + branches: [main] + paths: + - "chat/**" + - "Makefile" + pull_request: + branches: [main] + paths: + - "chat/**" + - "Makefile" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Install chat dependencies + run: | + cd chat + bun install + + - name: Build chat + run: | + cd chat + BASE_PATH=/magic-base-path-placeholder bun run build + + - name: Verify build output + run: | + if [ ! -d "chat/out" ]; then + echo "Build failed: chat/out directory not found" + exit 1 + fi + echo "Chat build completed successfully" + ls -la chat/out/