Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
heeckhau committed May 29, 2024
1 parent 4f58d06 commit 8a2416b
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,6 @@ env:
CARGO_TERM_COLOR: always

jobs:
rustfmt_and_clippy:
name: Rustfmt and Clippy
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust Nightly with rustfmt and clippy
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt, clippy

- uses: Swatinem/[email protected]

- name: "Check formatting"
run: cargo +nightly fmt --check --all

- name: Run Clippy
run: cargo clippy --all-targets --all-features

build_and_test:
name: "Build and Test"
Expand Down Expand Up @@ -62,6 +42,27 @@ jobs:
# RUSTDOCFLAGS: -D warnings
run: cargo doc --no-deps --workspace --lib --document-private-items --examples

rustfmt_and_clippy:
name: Rustfmt and Clippy
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust Nightly with rustfmt and clippy
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt, clippy

- uses: Swatinem/[email protected]

- name: "Check formatting"
run: cargo +nightly fmt --check --all

- name: Run Clippy
run: cargo clippy --all-targets --all-features

miri:
if: ( ! github.event.pull_request.draft )
name: "Test with Miri"
Expand Down

0 comments on commit 8a2416b

Please sign in to comment.