Skip to content

Add CI hook to check code formating using "cargo fmt --check" #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@ jobs:
# - uses: actions/checkout@v2
# - name: cargo clippy
# run: cargo clippy -- -D warnings
# uncoment to enable format checking
# fmt:
# runs-on: ubuntu-latest
# name: Format
# steps:
# - uses: actions/checkout@v3
# - name: cargo fmt
# run: cargo fmt --check
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ cargo clippy

Once installed, you can use the [download command](#download-input-for-a-day).

### Check code formatting in CI

Uncomment the `format` job in the `ci.yml` workflow to enable fmt checks in CI.

### Enable clippy lints in CI

Uncomment the `clippy` job in the `ci.yml` workflow to enable clippy checks in CI.
Expand Down