From 4098e11551fa9242d19e85ee7df12fa859fc6ae2 Mon Sep 17 00:00:00 2001 From: abhishek276533 Date: Sun, 10 Sep 2023 21:59:20 +0530 Subject: [PATCH] fix(ci): Add step to create and build generated code --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 09c7b035e8..900dd833ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,12 +34,15 @@ jobs: exit 1 fi - - name: Build generated code - run: yarn build + - name: Create and build generated code + run: | + npx create-puck-app test-ci-app + cd test-ci-app + yarn build - name: Check for build failures run: | - if ! ${{ success() }}; then + if [ $? -ne 0 ]; then echo "Build failed. Please fix the issues." exit 1 fi