From cb019786262463448246457a8c745bcd8b0f4834 Mon Sep 17 00:00:00 2001 From: Biswarghya Biswas Date: Mon, 28 Aug 2023 21:03:19 +0530 Subject: [PATCH] ci/cd: added github actions for agenta-web --- .github/workflows/build-check.yml | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/build-check.yml diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml new file mode 100644 index 0000000000..723cf88a2c --- /dev/null +++ b/.github/workflows/build-check.yml @@ -0,0 +1,37 @@ +name: Check Build Status + +on: + pull_request: + branches: + - main + paths: + - "agenta-web/**" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 20 + + - name: Install dependencies + run: npm ci + working-directory: agenta-web + + - name: Build + run: | + echo "Starting build process..." + npm run build + if [ $? -ne 0 ]; then + echo "Build failed" + exit 1 + else + echo "Build successful" + fi + working-directory: agenta-web