From 9494717c9e02d63b8dbf1197d3e1ea614ae7d09e Mon Sep 17 00:00:00 2001 From: Henning Oschwald Date: Thu, 30 Jul 2026 17:40:48 +0200 Subject: [PATCH] ci: split into fast check job and full test job - check job (push + PR): fmt + clippy only, fast syntax validation - test job (PR only): fmt + clippy + tests + docs, full validation --- .github/workflows/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e5d12f..505ead4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,19 @@ env: CARGO_TERM_COLOR: always jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: Swatinem/rust-cache@v2 + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + - run: cargo fmt --check + - run: cargo clippy --all-features --all-targets -- -D warnings + test: + if: github.event_name == 'pull_request' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -20,4 +32,4 @@ jobs: - run: cargo fmt --check - run: cargo clippy --all-features --all-targets -- -D warnings - run: cargo test --all-features - - run: cargo doc --no-deps --all-features + - run: cargo doc --no-deps --all-features \ No newline at end of file