From 45cba90ff9e23a6c8e4c48f05bf88e6f931741cf Mon Sep 17 00:00:00 2001 From: Max Mayfield Date: Sun, 1 Mar 2026 06:46:43 +0000 Subject: [PATCH] Rewrite CI workflows: raw shell commands instead of marketplace actions Host-mode act_runner can't resolve actions/checkout or actions/setup-node. Replaced with direct git clone + npm ci + tsc + npm test. --- .gitea/workflows/ci-p1-route.yml | 27 ++++++++---------------- .gitea/workflows/ci-p2-drift.yml | 34 ++++++++++++++----------------- .gitea/workflows/ci-p3-alert.yml | 18 +++++++--------- .gitea/workflows/ci-p4-portal.yml | 18 +++++++--------- .gitea/workflows/ci-p5-cost.yml | 18 +++++++--------- .gitea/workflows/ci-p6-run.yml | 18 +++++++--------- 6 files changed, 52 insertions(+), 81 deletions(-) diff --git a/.gitea/workflows/ci-p1-route.yml b/.gitea/workflows/ci-p1-route.yml index 6fb7a41..4ef8f7f 100644 --- a/.gitea/workflows/ci-p1-route.yml +++ b/.gitea/workflows/ci-p1-route.yml @@ -10,28 +10,19 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout + run: | + git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true + cd $GITHUB_WORKSPACE - - name: Install Rust - uses: dtolnay/rust-toolchain@stable - - - name: Cache cargo - uses: actions/cache@v4 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo-${{ hashFiles('products/01-llm-cost-router/Cargo.lock') }} + - name: Check Rust + run: rustc --version && cargo --version - name: Run tests - run: cargo test --workspace - working-directory: products/01-llm-cost-router + run: cd $GITHUB_WORKSPACE/products/01-llm-cost-router && cargo test --workspace - name: Clippy - run: cargo clippy --workspace -- -D warnings - working-directory: products/01-llm-cost-router + run: cd $GITHUB_WORKSPACE/products/01-llm-cost-router && cargo clippy --workspace -- -D warnings - name: Format check - run: cargo fmt --check - working-directory: products/01-llm-cost-router + run: cd $GITHUB_WORKSPACE/products/01-llm-cost-router && cargo fmt --check diff --git a/.gitea/workflows/ci-p2-drift.yml b/.gitea/workflows/ci-p2-drift.yml index a427d42..a53b511 100644 --- a/.gitea/workflows/ci-p2-drift.yml +++ b/.gitea/workflows/ci-p2-drift.yml @@ -10,37 +10,33 @@ jobs: agent: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout + run: | + git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true + cd $GITHUB_WORKSPACE - - uses: actions/setup-go@v5 - with: - go-version: '1.22' + - name: Check Go + run: go version - name: Test agent - run: go test ./... - working-directory: products/02-iac-drift-detection/agent + run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/agent && go test ./... - name: Vet - run: go vet ./... - working-directory: products/02-iac-drift-detection/agent + run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/agent && go vet ./... saas: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: '22' + - name: Checkout + run: | + git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true + cd $GITHUB_WORKSPACE - name: Install deps - run: npm ci - working-directory: products/02-iac-drift-detection/saas + run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npm ci - name: Type check - run: npx tsc --noEmit - working-directory: products/02-iac-drift-detection/saas + run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npx tsc --noEmit - name: Test - run: npm test - working-directory: products/02-iac-drift-detection/saas + run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npm test diff --git a/.gitea/workflows/ci-p3-alert.yml b/.gitea/workflows/ci-p3-alert.yml index 43daf06..d933522 100644 --- a/.gitea/workflows/ci-p3-alert.yml +++ b/.gitea/workflows/ci-p3-alert.yml @@ -10,20 +10,16 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: '22' + - name: Checkout + run: | + git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true + cd $GITHUB_WORKSPACE - name: Install deps - run: npm ci - working-directory: products/03-alert-intelligence + run: cd $GITHUB_WORKSPACE/products/03-alert-intelligence && npm ci - name: Type check - run: npx tsc --noEmit - working-directory: products/03-alert-intelligence + run: cd $GITHUB_WORKSPACE/products/03-alert-intelligence && npx tsc --noEmit - name: Test - run: npm test - working-directory: products/03-alert-intelligence + run: cd $GITHUB_WORKSPACE/products/03-alert-intelligence && npm test diff --git a/.gitea/workflows/ci-p4-portal.yml b/.gitea/workflows/ci-p4-portal.yml index 34b451b..2114cc7 100644 --- a/.gitea/workflows/ci-p4-portal.yml +++ b/.gitea/workflows/ci-p4-portal.yml @@ -10,20 +10,16 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: '22' + - name: Checkout + run: | + git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true + cd $GITHUB_WORKSPACE - name: Install deps - run: npm ci - working-directory: products/04-lightweight-idp + run: cd $GITHUB_WORKSPACE/products/04-lightweight-idp && npm ci - name: Type check - run: npx tsc --noEmit - working-directory: products/04-lightweight-idp + run: cd $GITHUB_WORKSPACE/products/04-lightweight-idp && npx tsc --noEmit - name: Test - run: npm test - working-directory: products/04-lightweight-idp + run: cd $GITHUB_WORKSPACE/products/04-lightweight-idp && npm test diff --git a/.gitea/workflows/ci-p5-cost.yml b/.gitea/workflows/ci-p5-cost.yml index f71c52a..d7a01fd 100644 --- a/.gitea/workflows/ci-p5-cost.yml +++ b/.gitea/workflows/ci-p5-cost.yml @@ -10,20 +10,16 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: '22' + - name: Checkout + run: | + git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true + cd $GITHUB_WORKSPACE - name: Install deps - run: npm ci - working-directory: products/05-aws-cost-anomaly + run: cd $GITHUB_WORKSPACE/products/05-aws-cost-anomaly && npm ci - name: Type check - run: npx tsc --noEmit - working-directory: products/05-aws-cost-anomaly + run: cd $GITHUB_WORKSPACE/products/05-aws-cost-anomaly && npx tsc --noEmit - name: Test - run: npm test - working-directory: products/05-aws-cost-anomaly + run: cd $GITHUB_WORKSPACE/products/05-aws-cost-anomaly && npm test diff --git a/.gitea/workflows/ci-p6-run.yml b/.gitea/workflows/ci-p6-run.yml index 9e2cbbb..57b5997 100644 --- a/.gitea/workflows/ci-p6-run.yml +++ b/.gitea/workflows/ci-p6-run.yml @@ -10,20 +10,16 @@ jobs: saas: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: '22' + - name: Checkout + run: | + git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true + cd $GITHUB_WORKSPACE - name: Install deps - run: npm ci - working-directory: products/06-runbook-automation/saas + run: cd $GITHUB_WORKSPACE/products/06-runbook-automation/saas && npm ci - name: Type check - run: npx tsc --noEmit - working-directory: products/06-runbook-automation/saas + run: cd $GITHUB_WORKSPACE/products/06-runbook-automation/saas && npx tsc --noEmit - name: Test - run: npm test - working-directory: products/06-runbook-automation/saas + run: cd $GITHUB_WORKSPACE/products/06-runbook-automation/saas && npm test