feat(ci): split staging workflow into parallel test and deploy jobs
This commit is contained in:
24
.github/workflows/staging.yml
vendored
24
.github/workflows/staging.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user