Skip to content

Commit

Permalink
do not run ignored test on pr; see #43
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyTurtleDev committed Apr 18, 2024
1 parent caee31b commit c218a31
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c218a31

Please sign in to comment.