build: update dashboard artifacts and add repeat-modules test workflow

This commit is contained in:
j3ssie
2026-01-27 01:28:21 +08:00
parent 7f339a69f0
commit 5bb2ff7f0c
343 changed files with 1433 additions and 577 deletions
@@ -0,0 +1,46 @@
# Test Echo Module
# Simple module that echoes messages and target information
name: test-echo
kind: module
description: Simple echo test module for repeat flow testing
tags: test, bash, echo
params:
- name: target
required: true
- name: message
default: "Hello from Osmedeus"
steps:
- name: echo-separator
type: bash
command: echo "=========================================="
- name: echo-module-start
type: bash
command: echo "[MODULE START] test-echo"
- name: echo-target
type: bash
command: 'echo "Target: {{target}}"'
- name: echo-message
type: bash
command: 'echo "Message: {{message}}"'
- name: echo-output-dir
type: bash
command: 'echo "Output directory: {{Output}}"'
- name: echo-timestamp
type: bash
command: 'echo "Timestamp: $(date +%Y-%m-%d\ %H:%M:%S)"'
- name: echo-module-end
type: bash
command: echo "[MODULE END] test-echo"
- name: echo-separator-end
type: bash
command: echo "=========================================="
@@ -0,0 +1,61 @@
# Test Loop Module
# Module that demonstrates foreach loop with items
name: test-loop
kind: module
description: Test foreach loop module for repeat flow testing
tags: test, foreach, loop
params:
- name: target
required: true
- name: loop_message
default: "Processing item"
- name: item_count
default: "5"
steps:
- name: loop-separator
type: bash
command: echo "=========================================="
- name: loop-module-start
type: bash
command: echo "[MODULE START] test-loop"
- name: loop-info
type: bash
command: 'echo "Loop message: {{loop_message}}"'
- name: create-input-file
type: bash
commands:
- mkdir -p {{Output}}/loop-data
- printf 'item-1\nitem-2\nitem-3\nitem-4\nitem-5\n' > {{Output}}/loop-data/items.txt
- echo "Created input file with items"
- name: process-items
type: foreach
input: "{{Output}}/loop-data/items.txt"
variable: item
threads: 2
step:
name: process-single-item
type: bash
commands:
- 'echo "{{loop_message}} - Processing [[item]] for target {{target}}"'
- sleep 0.1
- name: loop-summary
type: bash
commands:
- 'echo "Loop completed for target: {{target}}"'
- 'echo "Total items processed: $(wc -l < {{Output}}/loop-data/items.txt)"'
- name: loop-module-end
type: bash
command: echo "[MODULE END] test-loop"
- name: loop-separator-end
type: bash
command: echo "=========================================="