Some checks failed
CI Pipeline / Code Quality & Typecheck (push) Waiting to run
CI Pipeline / Test Suite (macos-latest) (push) Blocked by required conditions
CI Pipeline / Test Suite (ubuntu-latest) (push) Blocked by required conditions
CI Pipeline / Test Suite (windows-latest) (push) Blocked by required conditions
CI Pipeline / Build Validation (admin) (push) Blocked by required conditions
CI Pipeline / Build Validation (desktop) (push) Blocked by required conditions
Deploy Landing Page / deploy (push) Blocked by required conditions
Deploy Landing Page / build (push) Waiting to run
Release & Packaging Pipeline / Build & Publish Admin Docker Image (push) Failing after 8s
Release & Code Signing CA Pipeline / build-and-sign-windows (push) Failing after 1m51s
Build macOS / Build & Package (macOS) (push) Failing after 4s
Build macOS / Build & Package (macOS)-1 (push) Failing after 5s
Release & Code Signing CA Pipeline / build-and-sign-macos (push) Failing after 3s
Release & Packaging Pipeline / Package macOS Desktop App (push) Failing after 4s
Release & Packaging Pipeline / Package Windows Desktop App (push) Failing after 2m28s
Release & Packaging Pipeline / Publish Official GitHub Release (push) Has been skipped
106 lines
3.4 KiB
YAML
106 lines
3.4 KiB
YAML
# .github/workflows/ci.yml
|
|
# Continuous Integration Pipeline for D3RO Voice Monorepo
|
|
|
|
name: CI Pipeline
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- develop
|
|
- 'feature/**'
|
|
- 'fix/**'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- develop
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
# ──────────────────────────────────────────────────────────────────
|
|
# 1. Code Quality, Linting & Typecheck
|
|
# ──────────────────────────────────────────────────────────────────
|
|
code-quality:
|
|
name: Code Quality & Typecheck
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js 20 LTS
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: 'npm'
|
|
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
|
|
- name: Lint Check
|
|
run: npm run lint
|
|
continue-on-error: true
|
|
|
|
- name: Typecheck All Workspaces
|
|
run: npm run typecheck
|
|
|
|
# ──────────────────────────────────────────────────────────────────
|
|
# 2. Automated Test Matrix (Windows / macOS / Ubuntu)
|
|
# ──────────────────────────────────────────────────────────────────
|
|
test-matrix:
|
|
name: Test Suite (${{ matrix.os }})
|
|
needs: code-quality
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [windows-latest, macos-latest, ubuntu-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js 20 LTS
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: 'npm'
|
|
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
|
|
- name: Run Monorepo Test Suites (Vitest)
|
|
run: npm test
|
|
|
|
# ──────────────────────────────────────────────────────────────────
|
|
# 3. Build Validation for All Workspaces
|
|
# ──────────────────────────────────────────────────────────────────
|
|
build-validation:
|
|
name: Build Validation (${{ matrix.target }})
|
|
needs: code-quality
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- target: desktop
|
|
os: windows-latest
|
|
cmd: npm run build --workspace=@d3ro/desktop
|
|
- target: admin
|
|
os: ubuntu-latest
|
|
cmd: npm run build --workspace=@d3ro/admin
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js 20 LTS
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: 'npm'
|
|
|
|
- name: Install Dependencies
|
|
run: npm ci
|
|
|
|
- name: Build Target Workspace
|
|
run: ${{ matrix.cmd }}
|