Skip to content

Commit

Permalink
chore: improve ci (#4)
Browse files Browse the repository at this point in the history
* ci: remove cargo check & add -D warnings option to clippy

* ci: split Rust Tests commands into separate jobs

This one is a force merge because there's virtually no change to the workflow / actions
  • Loading branch information
imrn99 authored Feb 19, 2024
1 parent 619a7e2 commit cbc0fa6
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/rust-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
CARGO_TERM_COLOR: always

jobs:
test:
format:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand All @@ -19,9 +19,21 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- name: Check Format
run: cargo fmt -- --check
- name: Run Check
run: cargo check
- name: Run Clippy
run: cargo clippy
- name: Run Tests
run: cargo test --all
clippy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- name: Run Clippy
run: cargo clippy -- -D warnings
tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- name: Run Tests
run: cargo test --all

0 comments on commit cbc0fa6

Please sign in to comment.