Skip to content

Commit

Permalink
Update ci.yml (rustfmt) (#22)
Browse files Browse the repository at this point in the history
Migrate format check to new action
  • Loading branch information
alepez authored Dec 28, 2023
1 parent 1e8ca69 commit 58cc94a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,18 @@ on:
schedule:
- cron: '00 01 * * *'
jobs:
fmt_check:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt

- name: Check Formatting
run: cargo +stable fmt --all -- --check
- name: Check formatting
run: rm rust-toolchain.toml .cargo/config.toml && cargo fmt --all --check

test:
name: test
Expand Down

0 comments on commit 58cc94a

Please sign in to comment.