diff --git a/.github/workflows/rust-linting.yml b/.github/workflows/rust-linting.yml index 2deadcf..74cc7f9 100644 --- a/.github/workflows/rust-linting.yml +++ b/.github/workflows/rust-linting.yml @@ -11,34 +11,32 @@ on: jobs: fmt: runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 - - name: Set up Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true - - name: Run cargo fmt - run: cargo fmt -- --check + - name: Run cargo fmt + run: cargo fmt -- --check clippy: runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true - - - name: Run cargo clippy - run: cargo clippy --all-targets --workspace -- -D warnings + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + + - name: Run cargo clippy + run: cargo clippy --all-targets --workspace -- -D warnings diff --git a/.github/workflows/rust-tests.yml b/.github/workflows/rust-tests.yml index 541b407..6f85f71 100644 --- a/.github/workflows/rust-tests.yml +++ b/.github/workflows/rust-tests.yml @@ -11,17 +11,16 @@ on: jobs: tests: runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 - - name: Set up Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true - - name: Run tests - run: cargo test --all-targets --workspace + - name: Run tests + run: cargo test --all-targets --workspace