From 628efb99a5f0fb32015ff564704642099378ccf7 Mon Sep 17 00:00:00 2001 From: naiba Date: Sat, 4 Jul 2026 06:36:29 +0000 Subject: [PATCH] ci: add frontend build and test workflow Co-authored-by: naiba/CloudCode --- .github/workflows/frontend-ci.yml | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/frontend-ci.yml diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml new file mode 100644 index 0000000..de2a425 --- /dev/null +++ b/.github/workflows/frontend-ci.yml @@ -0,0 +1,34 @@ +name: Frontend CI + +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + build-and-test: + runs-on: ubuntu-latest + timeout-minutes: 15 + + steps: + - name: Checkout code + uses: actions/checkout@v7 + + - name: Setup Node + uses: actions/setup-node@v6 + with: + node-version: 20 + cache: npm + cache-dependency-path: package-lock.json + + - name: Install dependencies + run: npm ci + + - name: Build frontend + run: npm run build + + - name: Run unit tests + run: npm run test