feat(ci): split staging workflow into parallel test and deploy jobs

This commit is contained in:
Tuan-Dat Tran
2026-02-23 20:11:16 +01:00
parent 134de2679a
commit 3c219f3d9a

View File

@@ -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