Skip to content

Commit

Permalink
add test result info to summary
Browse files Browse the repository at this point in the history
  • Loading branch information
skylenet committed Jan 9, 2025
1 parent c6e8aca commit 3ad0da4
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ runs:
# Add the command executed
echo "" >> $GITHUB_STEP_SUMMARY
echo "## Command" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
echo "hive --sim \"${{ inputs.simulator }}\" --client \"${{ inputs.client }}\" --results-root results ${CLIENT_CONFIG_FLAG:-} ${{ inputs.extra_flags }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
Expand All @@ -204,7 +204,18 @@ runs:
shell: bash
run: |
echo "" >> $GITHUB_STEP_SUMMARY
echo "## Client config" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`yaml" >> $GITHUB_STEP_SUMMARY
echo "# client-config.yaml" >> $GITHUB_STEP_SUMMARY
echo "${{ inputs.client_config }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
- name: Convert JSON results to markdown summaries
if: env.RUN_SUCCESS == 'true'
shell: bash
run: |
for json_file in src/results/*.json; do
if [ -f "$json_file" ]; then
${{ github.action_path }}/scripts/json-result-to-md-summary.sh "$json_file"
cat "${json_file%.*}.md" >> $GITHUB_STEP_SUMMARY
fi
done

0 comments on commit 3ad0da4

Please sign in to comment.