name: test-example-report kind: module description: Test example report with nested parallel steps with mixed types tags: test,parallel,nested params: - name: target required: true reports: - name: main-output path: "{{Output}}/sub1.txt" type: text description: Main output file from the workflow - name: http-json path: "{{Output}}/http.json" type: json description: Structured JSON output - name: markdown-report-report path: "{{Output}}/reports/sample-markdown-report.md" type: markdown description: Markdown report output steps: - name: setup type: bash commands: - mkdir -p {{Output}}/templates/ - 'echo "sub 1: {{target}}" > {{Output}}/sub1.txt' - 'echo "sub 2: {{target}}" > {{Output}}/sub2.txt' # Generate a summary report with just high-severity findings - name: create-sample-repo-template type: bash command: | cat > {{Output}}/templates/sample-markdown-report.md << 'EOF' # Sample Repository Findings - {{Workspace}} **Target**: {{Target}} **Date**: {{TaskDate}} ```markdown | ID | Name | Score | | --- | --- | --- | | 1 | Alice | 90 | | 2 | Bob | 85 | | 3 | Charlie | 88 | ``` --- *Report generated by Osmedeus {{Version}}* EOF - name: generate-sample-markdown-report type: function function: 'render_markdown_report("{{Output}}/templates/sample-markdown-report.md", "{{Output}}/reports/sample-markdown-report.md")' # Generate a summary report with just high-severity findings - name: create-sample-repo-template type: bash command: | cat > {{Output}}/reports/sample-markdown-report.html << 'EOF'
Name: Roman
Course: Web Development
Code Sample:
function hello() {
console.log("Hello, world!");
}
| ID | Name | Score |
|---|---|---|
| 1 | Alice | 90 |
| 2 | Bob | 85 |
| 3 | Charlie | 88 |
Click the image 👆