Merge pull request #1149 from foresterre/dependabot/cargo/cmake-0.1.51 #862
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: "ci-fmt" | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- main | |
- staging # for Bors | |
- trying # for Bors | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout_repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: install_rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
profile: minimal | |
- name: install_rustfmt | |
run: rustup component add rustfmt | |
- name: check_formatting | |
run: | | |
cargo fmt -- --check |