From 3c219f3d9a5ef92d907fd9208e07c5449af0a724 Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Mon, 23 Feb 2026 20:11:16 +0100 Subject: [PATCH] feat(ci): split staging workflow into parallel test and deploy jobs --- .github/workflows/staging.yml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 836f28b..513d957 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -10,10 +10,9 @@ permissions: packages: write jobs: - build-and-deploy: - name: Build & Deploy to Staging + test: + name: Test runs-on: ubuntu-latest - environment: staging steps: - name: Checkout @@ -38,6 +37,25 @@ jobs: - name: Run tests run: npm run test:run + deploy: + name: Build & Deploy to Staging + runs-on: ubuntu-latest + needs: test + environment: staging + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "24" + cache: "npm" + + - name: Install dependencies + run: npm ci + - name: Build run: npm run build