fix(ci): pr-build summarization step (#27)

This commit is contained in:
2025-06-28 11:10:56 +03:00
committed by GitHub
parent fd366da0e8
commit 4aceff6c6f

View File

@@ -132,7 +132,7 @@ jobs:
- name: Upload build result
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: build-results-${{ steps.resultfile.outputs.filename }}
name: build-results-${{ steps.resultfile.outputs.filename }}
path: results/
overwrite: true
if-no-files-found: warn
@@ -151,22 +151,27 @@ jobs:
if: github.event_name == 'pull_request'
steps:
- name: Download all build results
id: dl
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: build-results-*
path: results
- name: Summarize results
id: summarize
shell: bash
run: |
set -x
{
echo "## Build Matrix Results"
echo ""
echo "| PHP Version | Architecture | Status | Duration (s) | Image Size (MB) | Base Image | Cache Used |"
echo "|-------------|--------------|---------|--------------|-----------------|------------|------------|"
} > comment.md
for f in results/*.json; do
for f in ${{ steps.dl.outputs.download-path }}/**/*.json; do
echo "debug"
cat "$f"
echo "/debug"
php=$(jq -r .php "$f")
arch=$(jq -r .arch "$f")
status=$(jq -r .status "$f")