diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0bd882b..37321d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,10 @@ on: pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: ci: runs-on: ubuntu-latest @@ -41,16 +45,17 @@ jobs: run: pnpm install --frozen-lockfile - name: Lint - run: pnpm lint || echo "Lint failed, please fix locally." - continue-on-error: true + run: pnpm lint + continue-on-error: false - name: Typecheck - run: pnpm typecheck || echo "Typecheck failed, please fix locally." - continue-on-error: true + run: pnpm typecheck + continue-on-error: false - name: Test - run: pnpm test -- --watch=false || echo "Tests failed, please review." - continue-on-error: true + run: pnpm test + continue-on-error: false - name: Build packages - run: pnpm -r build || echo "Build failed, please review." + run: pnpm -r build + continue-on-error: false diff --git a/.github/workflows/dependency-health.yml b/.github/workflows/dependency-health.yml index 6c28071..3742dd3 100644 --- a/.github/workflows/dependency-health.yml +++ b/.github/workflows/dependency-health.yml @@ -10,6 +10,10 @@ on: - cron: '0 6 * * *' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} + cancel-in-progress: true + jobs: dependency-health: runs-on: ubuntu-latest @@ -52,15 +56,15 @@ jobs: - name: Run Repair Script run: | - bash scripts/repair-dependencies.sh --dry-run - continue-on-error: true + bash scripts/repair-dependencies.sh + continue-on-error: false - name: Run Health Check id: health-check run: | bash scripts/master.sh health --json > health-report.json cat health-report.json - continue-on-error: true + continue-on-error: false - name: Smart Brain Oracle Analysis run: | diff --git a/.github/workflows/deploy-v3.yml b/.github/workflows/deploy-v3.yml index 7f0e36a..3e2d972 100644 --- a/.github/workflows/deploy-v3.yml +++ b/.github/workflows/deploy-v3.yml @@ -15,6 +15,10 @@ on: - testnet - mainnet +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: false + env: NODE_VERSION: '20' PNPM_VERSION: '9' diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a3f2a5b..87f8eb9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,9 +1,13 @@ -name: Deploy +name: Deploy on: push: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: false + jobs: deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/v3-build.yaml b/.github/workflows/v3-build.yaml index 992dc7b..dfe1fd6 100644 --- a/.github/workflows/v3-build.yaml +++ b/.github/workflows/v3-build.yaml @@ -7,6 +7,10 @@ on: branches: [main, v3] workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest @@ -44,15 +48,15 @@ jobs: - name: Run Repair Script (Issue #66) run: | - bash scripts/repair-dependencies.sh --dry-run - continue-on-error: true + bash scripts/repair-dependencies.sh + continue-on-error: false - name: Comprehensive Health Check (Issue #66) id: health-check run: | bash scripts/master.sh health --json > health-report.json cat health-report.json - continue-on-error: true + continue-on-error: false - name: Smart Brain Oracle Analysis (Issue #66) run: | @@ -72,8 +76,8 @@ jobs: - name: Type Check run: | echo "🔎 Running TypeScript type checks..." - pnpm typecheck || echo "⚠️ Type errors detected (non-blocking)" - continue-on-error: true + pnpm typecheck + continue-on-error: false - name: Build docs-site run: | diff --git a/packages/core-services/package.json b/packages/core-services/package.json index d83c5c6..3fd63f3 100644 --- a/packages/core-services/package.json +++ b/packages/core-services/package.json @@ -8,8 +8,9 @@ "dev": "tsx watch src/server.ts", "build": "tsc && tsc-alias", "start": "node dist/server.js", - "test": "vitest", - "test:watch": "vitest --watch", + "test": "vitest run", + "test:watch": "vitest", + "test:ci": "vitest run --coverage", "typecheck": "tsc --noEmit", "lint": "eslint src --ext .ts", "db:migrate": "tsx src/lib/db/migrate.ts",