Synthesis Hackathon submission. Built on IronClaw fork. 26 tools: Locus payments (6), Uniswap DeFi (3), onchain reads (3), security scanning (2), wallet analytics (3), OpenRouter LLM (2), self-hosted scraping (3), portfolio (2), synthesis (2). 3 defense hooks: spending limits ($5/tx, $25/session), contract guard (SCONE-bench vulnerability patterns), credential guard (blocks private key/seed phrase leaks). Payment system (Polar.sh), landing page, license key gating (Free/Pro/ Unlimited tiers), brand rename from IronClaw to Steelbot. 9,669 lines of code. 3,665 tests passing. Zero clippy warnings. Real USDC transactions on Base chain. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
85 lines
2.0 KiB
YAML
85 lines
2.0 KiB
YAML
name: Steelbot CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main, staging]
|
|
push:
|
|
branches: [main, staging]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
concurrency:
|
|
group: steelbot-ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
fmt:
|
|
name: Formatting
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: rustfmt
|
|
- run: cargo fmt --all -- --check
|
|
|
|
clippy:
|
|
name: Clippy
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: clippy
|
|
- uses: Swatinem/rust-cache@v2
|
|
with:
|
|
key: clippy
|
|
- run: cargo clippy --all --all-features -- -D warnings
|
|
|
|
test:
|
|
name: Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- uses: Swatinem/rust-cache@v2
|
|
with:
|
|
key: test
|
|
- run: cargo test --lib
|
|
|
|
check-features:
|
|
name: Feature Checks
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- name: libsql-only
|
|
flags: "--no-default-features --features libsql"
|
|
- name: all-features
|
|
flags: "--all-features"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- uses: Swatinem/rust-cache@v2
|
|
with:
|
|
key: check-${{ matrix.name }}
|
|
- run: cargo check ${{ matrix.flags }}
|
|
|
|
# Roll-up for branch protection
|
|
steelbot-ci:
|
|
name: Steelbot CI
|
|
runs-on: ubuntu-latest
|
|
if: always()
|
|
needs: [fmt, clippy, test, check-features]
|
|
steps:
|
|
- run: |
|
|
for result in "${{ needs.fmt.result }}" "${{ needs.clippy.result }}" "${{ needs.test.result }}" "${{ needs.check-features.result }}"; do
|
|
if [[ "$result" != "success" ]]; then
|
|
echo "One or more checks failed"
|
|
exit 1
|
|
fi
|
|
done
|
|
echo "All checks passed"
|