Merge pull request #43 from rex-rs/entry-generation #5
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: Formatting check | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| formatting: | |
| if: github.repository == 'rex-rs/rex' | |
| name: cargo fmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: switch rust nightly | |
| run: | | |
| rustup default nightly | |
| rustup component add rustfmt | |
| - name: formatting rex code | |
| run: cargo fmt --verbose --check | |
| - name: formatting samples code | |
| run: | | |
| for d in $(find ./samples -name Cargo.toml); do | |
| echo "→ Processing $d" | |
| cargo fmt --manifest-path $d --verbose --check | |
| done |