Skip to content

Commit

Permalink
Added lint CI check to rust.yml
Browse files Browse the repository at this point in the history
Added lint job for CI
  • Loading branch information
soumyasen1809 authored Aug 17, 2024
1 parent 9f525d2 commit caa4c4d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run
run: cargo run --verbose


lint:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run cargo check
run: cargo check
- name: Run rustfmt
run: cargo fmt -- --check
- name: Run clippy
run: cargo clippy -- -D warnings

0 comments on commit caa4c4d

Please sign in to comment.