action.yml
1name: 'Check formatting'
2description: 'Checks code formatting use cargo fmt'
3
4runs:
5 using: "composite"
6 steps:
7 - name: Install Rust
8 shell: bash -euxo pipefail {0}
9 run: |
10 rustup set profile minimal
11 rustup update stable
12
13 - name: cargo fmt
14 shell: bash -euxo pipefail {0}
15 run: cargo fmt --all -- --check