fix: improve JSON parsing reliability (#11) #95
This file contains hidden or 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: Format | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| fmt: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: rust:latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: "cmt-fmt" | |
| cache-on-failure: true | |
| - name: Install rustfmt | |
| run: rustup component add rustfmt | |
| - name: Check formatting with rustfmt | |
| run: cargo fmt --all -- --check || (echo "Formatting errors found. Please run 'cargo fmt' locally and commit the changes." && exit 1) |