Skip to content

fix: expose ConfigBundle as #[contracttype] contract endpoint #22

fix: expose ConfigBundle as #[contracttype] contract endpoint

fix: expose ConfigBundle as #[contracttype] contract endpoint #22

Workflow file for this run

# =============================================================================
# ApexChainx Contracts — CI Pipeline
# =============================================================================
#
# Triggered on push/PR to main. Essential checks:
# 1. Formatting (rustfmt)
# 2. Linting (clippy)
# 3. Build (cargo build)
# 4. Tests (cargo test)
# =============================================================================
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Build, Test & Verify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache Cargo dependencies
uses: Swatinem/rust-cache@v2
with:
workspaces: apexchainx_calculator
- name: Check formatting
run: cargo fmt --manifest-path apexchainx_calculator/Cargo.toml -- --check
- name: Clippy linting
run: cargo clippy --manifest-path apexchainx_calculator/Cargo.toml
- name: Build
run: cargo build --manifest-path apexchainx_calculator/Cargo.toml
- name: Run tests
run: cargo test --manifest-path apexchainx_calculator/Cargo.toml