Skip to content

Commit

Permalink
separate cargo clippy and cargo fmt steps in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
rbalicki2 committed Jan 6, 2025
1 parent 581bb44 commit ac41ff1
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ jobs:
- name: 'Check working directory status'
run: './scripts/check-git-status.sh'

rustfmt:
name: Run cargo fmt and clippy
cargo-fmt:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -188,11 +188,22 @@ jobs:
components: rustfmt
- name: Run cargo fmt
run: cargo fmt
- name: Run cargo clippy
run: cargo clippy
- name: 'Check working directory status'
run: './scripts/check-git-status.sh'

cargo-clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: rustfmt
- name: Run cargo clippy
run: cargo clippy

cargo-test:
name: Run cargo test (excluding relay tests)
runs-on: ubuntu-latest
Expand Down Expand Up @@ -225,7 +236,8 @@ jobs:
build-demos,
build-website,
prettier,
rustfmt,
cargo-fmt,
cargo-clippy,
cargo-test,
typecheck-demos,
]
Expand Down

0 comments on commit ac41ff1

Please sign in to comment.