Skip to content

Merge pull request #43 from rex-rs/entry-generation #5

Merge pull request #43 from rex-rs/entry-generation

Merge pull request #43 from rex-rs/entry-generation #5

Workflow file for this run

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