Skip to content

Commit

Permalink
Create code_style.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
FroVolod authored Jan 21, 2024
1 parent 33ac2b3 commit 307f207
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/code_style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Code Style

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
codestyle:
name: Code Style (fmt + clippy)
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt
- name: Check formatting
run: cargo fmt --all -- --check
- name: Check lints (cargo clippy)
run: cargo clippy -- -D warnings

0 comments on commit 307f207

Please sign in to comment.