From f7d1900c5b286983989f1d6218857ab3410fd38a Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Tue, 15 Oct 2024 13:42:20 +0300 Subject: [PATCH] actions: logs-compression check depends on echo There is no guarantee that a test will not reset the actions logs from a previous test. Since logs-compression depends on the logs from the echo test, make that dependency explicit. --- actions/actions.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/actions/actions.sh b/actions/actions.sh index 9701e39..246f725 100755 --- a/actions/actions.sh +++ b/actions/actions.sh @@ -117,7 +117,14 @@ function test_actions() { done fi - for example in echo cache checkout service container expression local-action docker-action if if-fail push tag push-cancel artifacts pull-request context; do + run actions_verify_example echo + if dpkg --compare-versions $version ge 9.0; then + # depends on run actions_verify_example echo + # run it immediately after + run actions_verify_feature logs-compression + fi + + for example in cache checkout service container expression local-action docker-action if if-fail push tag push-cancel artifacts pull-request context; do run actions_verify_example $example done @@ -140,7 +147,6 @@ function test_actions() { fi if dpkg --compare-versions $version ge 9.0; then - run actions_verify_feature logs-compression run actions_verify_example schedule-noncancel fi done