From a61ca32df7a37a76b5a65f7b2c3152f0b144ad05 Mon Sep 17 00:00:00 2001 From: Alexander van Saase Date: Fri, 24 Jan 2025 23:59:19 +0100 Subject: [PATCH] CI improvements (#5) * Run CI only on push * Simplify CI --- .github/workflows/ci.yaml | 33 ++++++--------------------------- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 95b4766..49b6f2c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,36 +1,15 @@ name: CI on: push: - pull_request: jobs: - test: - name: Tests + checks: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions-rust-lang/setup-rust-toolchain@v1 - - name: Run tests - run: cargo test --all-features - - formatting: - name: Rustfmt - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - components: rustfmt - - name: Run rustfmt - run: cargo fmt - - linting: - name: Clippy - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions-rust-lang/setup-rust-toolchain@v1 + - uses: dtolnay/rust-toolchain@nightly with: - components: clippy - - name: Run Clippy - run: cargo clippy --all-targets --all-features + components: clippy, rustfmt + - run: cargo test --all-features + - run: cargo fmt + - run: cargo clippy --all-targets --all-features