From 661979edd18d63e0f01ddc2ad49c95d79bbc6cd1 Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 17 Apr 2024 12:08:03 +0200 Subject: [PATCH] reworked workflow triggers --- .github/workflows/check-and-lint.yml | 1 + .github/workflows/test.yml | 3 +++ README.md | 10 ++-------- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/check-and-lint.yml b/.github/workflows/check-and-lint.yml index a166e12..c3e3db7 100644 --- a/.github/workflows/check-and-lint.yml +++ b/.github/workflows/check-and-lint.yml @@ -2,6 +2,7 @@ on: pull_request: + types: [ opened, synchronize, reopened, edited, unlocked, review_requested ] push: branches: - main diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dcd7f56..0f0c1c6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,9 +2,12 @@ on: pull_request: + types: [opened, synchronize, reopened] + push: branches: - main + name: Test with Code Coverage jobs: diff --git a/README.md b/README.md index 966709b..f50d354 100644 --- a/README.md +++ b/README.md @@ -27,15 +27,9 @@ wondering if your computer has decided to take a coffee break without notifying 100+ predefined animations - - -- [Spinner](https://docs.rs/zenity/latest/zenity/spinner/frames/struct.Frames.html) +- [Spinner](https://docs.rs/zenity/latest/zenity/spinner/frames/struct.Frames.html) - [ProgressBar](https://docs.rs/zenity/latest/zenity/progress/frames/struct.Frames.html) - - - - ## How to Use? It's as easy as pie (or maybe even easier, depending on your pie-making skills)! @@ -59,7 +53,7 @@ fn main() { // optional: // set the text to "Loading..." - spinner.set_text(&spinner.get_last(), " Loading...".to_string()); + spinner.set_text(&spinner.get_last(), " Loading...".to_string()); sleep(Duration::from_secs(500)); // `loading_animation` will run out of scope now and get dropped,