Skip to content

Commit

Permalink
Fixing unit tests execution
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Oct 14, 2024
1 parent c9dfc58 commit 0dd3b20
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit 0dd3b20

Please sign in to comment.