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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user