Adjusting CI files #9
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: Code Cleaniness | |
on: | |
push: | |
branches: [ main, development ] | |
pull_request: | |
branches: [ main, development ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
code_cleaniness_checks: | |
name: Formatting Checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Rust | |
uses: hecrj/setup-rust-action@v2 | |
with: | |
rust-version: nightly | |
components: rustfmt | |
- uses: actions/checkout@v4 | |
- run: cargo fmt --check --package squire_lib | |
- run: cargo fmt --check --package squire_sdk | |
- run: cargo fmt --check --manifest-path squire_web/Cargo.toml | |
- run: cargo fmt --check --package squire_core |