Skip to content

VectorCraft: An open-source, vector art tool written by scratch in pure Rust

ci: run the printps tests under their moved path and fail when none run (#4305)

aiongg9997ff021503
diff --git a/.github/workflows/print.yml b/.github/workflows/print.yml
index 2ee35f176..400a81944 100644
--- a/.github/workflows/print.yml
+++ b/.github/workflows/print.yml
@@ -32,4 +32,8 @@ jobs:
- run: cargo clippy --locked -p vectorcraft --all-targets -- -D warnings
- run: cargo test --locked -p vectorcraft
- name: Check pending submission and queue refusal feedback
- run: cargo test --locked -p vectorcraft-ui-egui tests_printps
+ shell: bash
+ # A filter that matches nothing still passes, so fail unless some test ran.
+ run: |
+ cargo test --locked -p vectorcraft-ui-egui --lib -- tests::printps | tee printps.log
+ grep -Eq 'test result: ok\. [1-9][0-9]* passed' printps.log || { echo "::error::tests::printps matched no tests"; exit 1; }