mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-07-09 07:17:13 -04:00
Merge branch 'next_release' of https://github.com/netalertx/NetAlertX into next_release
This commit is contained in:
18
.github/workflows/run-all-tests.yml
vendored
18
.github/workflows/run-all-tests.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user