Merge pull request #742 from foresterre/dependabot/cargo/parameterize… #270
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 |