From 0dd3b20b0f981461b8d8ce278b9489cb2a617902 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Mon, 14 Oct 2024 10:44:29 +0200 Subject: [PATCH] Fixing unit tests execution --- .github/workflows/unit-tests.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 4f498535b..aa88fe044 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -1,7 +1,8 @@ name: "Unit tests" on: - repository_dispatch: - types: ["Unit tests"] + workflow_dispatch: +# repository_dispatch: +# types: ["Unit tests"] schedule: - cron: '0 2 * * *' pull_request: @@ -51,11 +52,11 @@ jobs: # read tests cases if [[ -n "${{ steps.changed-files.outputs.all_changed_files }}" ]]; then tests=($(grep -rw ${{ steps.changed-files.outputs.all_changed_files }} -e "ENABLED=true" | cut -d":" -f1)) - else + elif [[ -z "${{github.event.pull_request.number}}" ]]; then tests=($(grep -rw tests/*.conf -e "ENABLED=true" | cut -d":" -f1)) fi - # loop enabled tests + # loop enabled test cases for i in "${tests[@]}"; do unset RELEASE source "${i}"