Skip to content

Commit

Permalink
Add format check to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cygnet3 committed Jan 24, 2024
1 parent 8a843a3 commit 325f60f
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
build_and_test:

runs-on: ubuntu-latest

Expand All @@ -20,3 +20,18 @@ jobs:
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

format:

runs-on: ubuntu-latest

steps:
- name: Setup toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
override: true
components: rustfmt
- uses: actions/checkout@v3
- name: Run rustfmt
run: cargo fmt --check

0 comments on commit 325f60f

Please sign in to comment.