rust-sdk/.github/workflows/fmt.yml
David Soria Parra e56d91c4a9
feat: github workflows
Run clippy, tests and cargo fmt checks at PR and push time.
2025-02-21 20:39:05 +00:00

23 lines
377 B
YAML

name: Format
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Code Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Check formatting
run: cargo fmt --all -- --check