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.
This commit is contained in:
2026-03-01 06:46:43 +00:00
parent 68140881e0
commit 45cba90ff9
6 changed files with 52 additions and 81 deletions

View File

@@ -10,28 +10,19 @@ jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: 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 - name: Check Rust
uses: dtolnay/rust-toolchain@stable run: rustc --version && cargo --version
- 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: Run tests - name: Run tests
run: cargo test --workspace run: cd $GITHUB_WORKSPACE/products/01-llm-cost-router && cargo test --workspace
working-directory: products/01-llm-cost-router
- name: Clippy - name: Clippy
run: cargo clippy --workspace -- -D warnings run: cd $GITHUB_WORKSPACE/products/01-llm-cost-router && cargo clippy --workspace -- -D warnings
working-directory: products/01-llm-cost-router
- name: Format check - name: Format check
run: cargo fmt --check run: cd $GITHUB_WORKSPACE/products/01-llm-cost-router && cargo fmt --check
working-directory: products/01-llm-cost-router

View File

@@ -10,37 +10,33 @@ jobs:
agent: agent:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: 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 - name: Check Go
with: run: go version
go-version: '1.22'
- name: Test agent - name: Test agent
run: go test ./... run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/agent && go test ./...
working-directory: products/02-iac-drift-detection/agent
- name: Vet - name: Vet
run: go vet ./... run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/agent && go vet ./...
working-directory: products/02-iac-drift-detection/agent
saas: saas:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - name: Checkout
run: |
- uses: actions/setup-node@v4 git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true
with: cd $GITHUB_WORKSPACE
node-version: '22'
- name: Install deps - name: Install deps
run: npm ci run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npm ci
working-directory: products/02-iac-drift-detection/saas
- name: Type check - name: Type check
run: npx tsc --noEmit run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npx tsc --noEmit
working-directory: products/02-iac-drift-detection/saas
- name: Test - name: Test
run: npm test run: cd $GITHUB_WORKSPACE/products/02-iac-drift-detection/saas && npm test
working-directory: products/02-iac-drift-detection/saas

View File

@@ -10,20 +10,16 @@ jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - name: Checkout
run: |
- uses: actions/setup-node@v4 git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true
with: cd $GITHUB_WORKSPACE
node-version: '22'
- name: Install deps - name: Install deps
run: npm ci run: cd $GITHUB_WORKSPACE/products/03-alert-intelligence && npm ci
working-directory: products/03-alert-intelligence
- name: Type check - name: Type check
run: npx tsc --noEmit run: cd $GITHUB_WORKSPACE/products/03-alert-intelligence && npx tsc --noEmit
working-directory: products/03-alert-intelligence
- name: Test - name: Test
run: npm test run: cd $GITHUB_WORKSPACE/products/03-alert-intelligence && npm test
working-directory: products/03-alert-intelligence

View File

@@ -10,20 +10,16 @@ jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - name: Checkout
run: |
- uses: actions/setup-node@v4 git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true
with: cd $GITHUB_WORKSPACE
node-version: '22'
- name: Install deps - name: Install deps
run: npm ci run: cd $GITHUB_WORKSPACE/products/04-lightweight-idp && npm ci
working-directory: products/04-lightweight-idp
- name: Type check - name: Type check
run: npx tsc --noEmit run: cd $GITHUB_WORKSPACE/products/04-lightweight-idp && npx tsc --noEmit
working-directory: products/04-lightweight-idp
- name: Test - name: Test
run: npm test run: cd $GITHUB_WORKSPACE/products/04-lightweight-idp && npm test
working-directory: products/04-lightweight-idp

View File

@@ -10,20 +10,16 @@ jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - name: Checkout
run: |
- uses: actions/setup-node@v4 git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true
with: cd $GITHUB_WORKSPACE
node-version: '22'
- name: Install deps - name: Install deps
run: npm ci run: cd $GITHUB_WORKSPACE/products/05-aws-cost-anomaly && npm ci
working-directory: products/05-aws-cost-anomaly
- name: Type check - name: Type check
run: npx tsc --noEmit run: cd $GITHUB_WORKSPACE/products/05-aws-cost-anomaly && npx tsc --noEmit
working-directory: products/05-aws-cost-anomaly
- name: Test - name: Test
run: npm test run: cd $GITHUB_WORKSPACE/products/05-aws-cost-anomaly && npm test
working-directory: products/05-aws-cost-anomaly

View File

@@ -10,20 +10,16 @@ jobs:
saas: saas:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - name: Checkout
run: |
- uses: actions/setup-node@v4 git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true
with: cd $GITHUB_WORKSPACE
node-version: '22'
- name: Install deps - name: Install deps
run: npm ci run: cd $GITHUB_WORKSPACE/products/06-runbook-automation/saas && npm ci
working-directory: products/06-runbook-automation/saas
- name: Type check - name: Type check
run: npx tsc --noEmit run: cd $GITHUB_WORKSPACE/products/06-runbook-automation/saas && npx tsc --noEmit
working-directory: products/06-runbook-automation/saas
- name: Test - name: Test
run: npm test run: cd $GITHUB_WORKSPACE/products/06-runbook-automation/saas && npm test
working-directory: products/06-runbook-automation/saas