Merge branch 'next_release' of https://github.com/netalertx/NetAlertX into next_release

This commit is contained in:
Jokob @NetAlertX
2026-07-01 05:58:00 +00:00

View File

@@ -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