Skip to content

Commit

Permalink
Updated fmt check
Browse files Browse the repository at this point in the history
  • Loading branch information
emoon committed May 12, 2024
1 parent 02c21f8 commit f74e958
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,23 @@ on: [push, pull_request]
name: CI

jobs:
lint:
name: Lint
fmt:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job.
steps:
# make sure all code has been formatted with rustfmt
- run: rustup component add rustfmt
- name: check rustfmt
uses: actions-rs/cargo@v1
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
command: fmt
args: -- --check --color always
toolchain: stable
profile: minimal
components: rustfmt
override: true

- name: Check Format
run: cargo fmt -- --check

build_and_test:
name: Test
Expand Down

0 comments on commit f74e958

Please sign in to comment.