From c218a31b0bddd0122e9ae8ac833fe3ac49c62b64 Mon Sep 17 00:00:00 2001 From: LuckyTurtleDev Date: Thu, 18 Apr 2024 16:51:17 +0200 Subject: [PATCH] do not run ignored test on pr; see #43 --- .github/workflows/rust.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c444284..eb3e0ba 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -30,10 +30,16 @@ jobs: with: crate: cargo-all-features - run: cargo test-all-features --release -- --include-ignored + if: github.event_name != 'pull_request' env: RUST_BACKTRACE: 1 RUST_TEST_THREADS: 1 TG_BOT_KEY: ${{ secrets.TG_BOT_KEY }} + - run: cargo test-all-features --release + if: github.event_name == 'pull_request' + env: + RUST_BACKTRACE: 1 + RUST_TEST_THREADS: 1 test: strategy: @@ -69,10 +75,16 @@ jobs: target key: "${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}} Lock ${{hashFiles('Cargo.lock')}}" - run: cargo test --no-default-features --features ffmpeg,log -- --include-ignored + if: github.event_name != 'pull_request' env: RUST_BACKTRACE: 1 RUST_TEST_THREADS: 1 TG_BOT_KEY: ${{ secrets.TG_BOT_KEY }} + - run: cargo test --no-default-features --features ffmpeg,log + if: github.event_name == 'pull_request' + env: + RUST_BACKTRACE: 1 + RUST_TEST_THREADS: 1 rustfmt: runs-on: ubuntu-latest