From d0a36a2f476d134127a0abf9cbb05749f6f6bc20 Mon Sep 17 00:00:00 2001 From: Alexander van Saase Date: Fri, 24 Jan 2025 23:55:01 +0100 Subject: [PATCH 1/2] Run CI only on push --- .github/workflows/ci.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 95b4766..b968740 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,7 +1,6 @@ name: CI on: push: - pull_request: jobs: test: From 19e4065a13025e938cb116d12bd8d8da5910f11c Mon Sep 17 00:00:00 2001 From: Alexander van Saase Date: Fri, 24 Jan 2025 23:58:29 +0100 Subject: [PATCH 2/2] Simplify CI --- .github/workflows/ci.yaml | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b968740..49b6f2c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,33 +3,13 @@ on: push: 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