forked from claude-did-this/claude-hub
Correct runner labels and optimize job distribution for proper execution
- Fix label capitalization: linux,x64 → Linux,X64 to match actual runner - Strategic job distribution: heavy tasks on self-hosted, light tasks on GitHub 4-core - Ensures jobs are picked up by homeserver runner instead of queuing indefinitely 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
||||
# Lint job - fast and independent
|
||||
lint:
|
||||
name: Lint & Format Check
|
||||
runs-on: [self-hosted, linux, x64]
|
||||
runs-on: ubuntu-latest-4-cores
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -40,7 +40,7 @@ jobs:
|
||||
# Unit tests - fastest test suite
|
||||
test-unit:
|
||||
name: Unit Tests
|
||||
runs-on: [self-hosted, linux, x64]
|
||||
runs-on: ubuntu-latest-4-cores
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -67,7 +67,7 @@ jobs:
|
||||
# Integration tests - moderate complexity
|
||||
test-integration:
|
||||
name: Integration Tests
|
||||
runs-on: [self-hosted, linux, x64]
|
||||
runs-on: ubuntu-latest-4-cores
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -94,7 +94,7 @@ jobs:
|
||||
# E2E tests - most complex, run on self-hosted for better performance
|
||||
test-e2e:
|
||||
name: E2E Tests
|
||||
runs-on: self-hosted
|
||||
runs-on: [self-hosted, Linux, X64]
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -121,7 +121,7 @@ jobs:
|
||||
# Coverage generation - depends on unit tests
|
||||
coverage:
|
||||
name: Test Coverage
|
||||
runs-on: [self-hosted, linux, x64]
|
||||
runs-on: ubuntu-latest-4-cores
|
||||
needs: [test-unit]
|
||||
|
||||
steps:
|
||||
@@ -157,7 +157,7 @@ jobs:
|
||||
# Security scans - run in parallel with tests
|
||||
security:
|
||||
name: Security Scan
|
||||
runs-on: [self-hosted, linux, x64]
|
||||
runs-on: [self-hosted, Linux, X64]
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -187,7 +187,7 @@ jobs:
|
||||
# Docker builds - move to self-hosted for better performance
|
||||
docker:
|
||||
name: Docker Build & Test
|
||||
runs-on: self-hosted
|
||||
runs-on: [self-hosted, Linux, X64]
|
||||
# Only need unit tests to pass for Docker builds
|
||||
needs: [test-unit, lint]
|
||||
|
||||
|
||||
10
.github/workflows/deploy.yml
vendored
10
.github/workflows/deploy.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
||||
|
||||
test:
|
||||
name: Run Tests
|
||||
runs-on: [self-hosted, linux, x64]
|
||||
runs-on: ubuntu-latest-4-cores
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x, 20.x]
|
||||
@@ -53,7 +53,7 @@ jobs:
|
||||
|
||||
build:
|
||||
name: Build Docker Image
|
||||
runs-on: self-hosted
|
||||
runs-on: [self-hosted, Linux, X64]
|
||||
needs: test
|
||||
|
||||
outputs:
|
||||
@@ -107,7 +107,7 @@ jobs:
|
||||
|
||||
security-scan:
|
||||
name: Security Scanning
|
||||
runs-on: [self-hosted, linux, x64]
|
||||
runs-on: ubuntu-latest-4-cores
|
||||
needs: build
|
||||
if: github.event_name != 'pull_request'
|
||||
|
||||
@@ -140,7 +140,7 @@ jobs:
|
||||
name: Deploy to Staging
|
||||
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
||||
needs: [build, security-scan]
|
||||
runs-on: self-hosted
|
||||
runs-on: [self-hosted, Linux, X64]
|
||||
environment: staging
|
||||
|
||||
steps:
|
||||
@@ -193,7 +193,7 @@ jobs:
|
||||
name: Deploy to Production
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
needs: [build, security-scan]
|
||||
runs-on: self-hosted
|
||||
runs-on: [self-hosted, Linux, X64]
|
||||
environment:
|
||||
name: production
|
||||
url: https://webhook.yourdomain.com
|
||||
|
||||
4
.github/workflows/docker-publish.yml
vendored
4
.github/workflows/docker-publish.yml
vendored
@@ -25,7 +25,7 @@ env:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
runs-on: [self-hosted, Linux, X64]
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
@@ -91,7 +91,7 @@ jobs:
|
||||
|
||||
# Additional job to build and push the Claude Code container
|
||||
build-claudecode:
|
||||
runs-on: self-hosted
|
||||
runs-on: [self-hosted, Linux, X64]
|
||||
if: github.event_name != 'pull_request'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
2
.github/workflows/security-audit.yml
vendored
2
.github/workflows/security-audit.yml
vendored
@@ -11,7 +11,7 @@ on:
|
||||
|
||||
jobs:
|
||||
security-audit:
|
||||
runs-on: [self-hosted, linux, x64]
|
||||
runs-on: [self-hosted, Linux, X64]
|
||||
name: Security Audit
|
||||
|
||||
steps:
|
||||
|
||||
6
.github/workflows/security.yml
vendored
6
.github/workflows/security.yml
vendored
@@ -12,7 +12,7 @@ on:
|
||||
jobs:
|
||||
dependency-scan:
|
||||
name: Dependency Security Scan
|
||||
runs-on: [self-hosted, linux, x64]
|
||||
runs-on: [self-hosted, Linux, X64]
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -36,7 +36,7 @@ jobs:
|
||||
|
||||
secret-scan:
|
||||
name: Secret Scanning
|
||||
runs-on: [self-hosted, linux, x64]
|
||||
runs-on: [self-hosted, Linux, X64]
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -54,7 +54,7 @@ jobs:
|
||||
|
||||
codeql:
|
||||
name: CodeQL Analysis
|
||||
runs-on: [self-hosted, linux, x64]
|
||||
runs-on: [self-hosted, Linux, X64]
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
|
||||
Reference in New Issue
Block a user