Files
dd0c/.gitea/workflows/ci-p1-route.yml
Max Mayfield 45cba90ff9 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.
2026-03-01 06:46:43 +00:00

29 lines
815 B
YAML

name: CI — P1 Route (Rust)
on:
push:
branches: [main]
paths: ['products/01-llm-cost-router/**']
pull_request:
paths: ['products/01-llm-cost-router/**']
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git clone --depth=1 http://192.168.86.11:3005/jarvis/dd0c.git $GITHUB_WORKSPACE || true
cd $GITHUB_WORKSPACE
- name: Check Rust
run: rustc --version && cargo --version
- name: Run tests
run: cd $GITHUB_WORKSPACE/products/01-llm-cost-router && cargo test --workspace
- name: Clippy
run: cd $GITHUB_WORKSPACE/products/01-llm-cost-router && cargo clippy --workspace -- -D warnings
- name: Format check
run: cd $GITHUB_WORKSPACE/products/01-llm-cost-router && cargo fmt --check