Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
pin a version; add format check workflow
Browse files Browse the repository at this point in the history
Signed-off-by: AveryQi115 <[email protected]>
  • Loading branch information
AveryQi115 committed Feb 12, 2024
1 parent 1ae1086 commit c1fe5e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/rustfmt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,10 @@ on: pull_request
name: Rustfmt

jobs:
format:
test:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- uses: mbrobbel/rustfmt-check@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
mode: review
- name: Checkout repository
uses: actions/checkout@v4
- name: Check formatting
run: cargo fmt --all --check
4 changes: 3 additions & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
stable
[toolchain]
channel = "1.76.0"
components = [ "rustfmt", "clippy" ]

0 comments on commit c1fe5e8

Please sign in to comment.