Added sending SWAP total and used amounts #373
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust CI | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- "**" | |
env: | |
CARGO_TERM_COLOR: always # Ensures colored output in GitHub Actions logs | |
jobs: | |
build-and-test: | |
name: Build and Test on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4.1.4 | |
- name: Setup Rust toolchain | |
run: rustup toolchain install stable --profile minimal | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2.7.3 | |
- name: Build | |
run: cargo build --release --verbose | |
# - name: Copy config | |
# run: mkdir -p $HOME/.config/tracer && cp tracer.toml $HOME/.config/tracer/tracer.toml | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Check Formatting | |
run: cargo fmt -- --check | |
- name: Lint with Clippy | |
run: cargo clippy -- -D warnings |