diff --git a/.github/workflows/run-all-tests.yml b/.github/workflows/run-all-tests.yml index a68bbde7..8c13935f 100644 --- a/.github/workflows/run-all-tests.yml +++ b/.github/workflows/run-all-tests.yml @@ -4,6 +4,8 @@ on: pull_request: branches: - main + schedule: + - cron: '0 2 * * *' # Daily at 02:00 UTC workflow_dispatch: inputs: run_all: @@ -13,7 +15,7 @@ on: run_scan: description: '๐Ÿ“‚ scan/ (Scan, Logic, Locks, IPs)' type: boolean - default: true + default: false run_api: description: '๐Ÿ“‚ api_endpoints/ & server/ (Endpoints & Server)' type: boolean @@ -64,14 +66,16 @@ jobs: run: | PATHS="" - # Always run all tests on pull_request events - if [ "$INPUT_EVENT_NAME" == "pull_request" ]; then + # pull_request and scheduled runs always execute the full test suite + if [ "$INPUT_EVENT_NAME" == "pull_request" ] || [ "$INPUT_EVENT_NAME" == "schedule" ]; then + echo "๐Ÿ“… Scheduled/PR run - executing full test suite" echo "final_paths=test/" >> $GITHUB_OUTPUT exit 0 fi - # run_all overrides everything + # Manual 'Run ALL' overrides individual selectors if [ "$INPUT_RUN_ALL" == "true" ]; then + echo "๐Ÿงช Manual 'Run ALL' selected" echo "final_paths=test/" >> $GITHUB_OUTPUT exit 0 fi @@ -90,8 +94,12 @@ jobs: fi # If nothing is selected, default to the whole test folder - if [ -z "$PATHS" ]; then PATHS="test/"; fi + if [ -z "$PATHS" ]; then + echo "โ„น๏ธ No test groups selected - defaulting to full test suite" + PATHS="test/" + fi + echo "๐ŸŽฏ Selected test paths: $PATHS" echo "final_paths=$PATHS" >> $GITHUB_OUTPUT - name: Run Docker Integration Script