bump2version/.github/workflows/rustfmt.yml
Mo Zhonghua 017a228f6b
should bump to version specified by --new-version if present (#3)
* update Cargo.lock

* better error message when failed to get current version from config

* should bump to version specified by --new-version if present

* fix: update docs && add CI

---------

Co-authored-by: 莫仲华 <mozhonghua@qiyi.com>
2024-11-14 05:56:12 +02:00

28 lines
No EOL
460 B
YAML
Executable file

name: Rust Format Check
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
- name: Run rustfmt
run: cargo fmt -- --check