Merge pull request #9 from paultag/dependabot/cargo/tokio-1.41.1 #13
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
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "**.rs" | |
- Cargo.toml | |
- Cargo.lock | |
- .github/workflows/cargo-fmt.yml | |
pull_request: | |
paths: | |
- "**.rs" | |
- Cargo.toml | |
- Cargo.lock | |
- .github/workflows/cargo-fmt.yml | |
permissions: | |
packages: read | |
contents: read | |
name: cargo fmt | |
jobs: | |
cargofmt: | |
name: cargo fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
components: rustfmt | |
rustflags: "" # use our .cargo/config.toml | |
- name: Run cargo fmt | |
run: | | |
cargo fmt -- --check | |
shell: bash |