Skip to content

Commit

Permalink
Workflow summary formatting adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
norberttech committed Oct 16, 2023
1 parent e9d149f commit 3e03d6e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 28 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/benchmark-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,12 @@ jobs:
restore-keys: |
php-${{ matrix.php-version }}-${{ env.PHPBENCH_TAG }}-phpbench-
- name: Adding main headline
run: |
echo '# Flow PHP - Benchmark - ${{ env.PHPBENCH_TAG }}' >> $GITHUB_STEP_SUMMARY
echo ' ' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
- name: "Benchmark"
run: "composer test:benchmark -- --tag=${{ env.PHPBENCH_TAG }} --progress=none >> $GITHUB_STEP_SUMMARY"

- name: Adding footer
run: |
echo '```' >> $GITHUB_STEP_SUMMARY
echo '# Flow PHP - Benchmark - ${{ env.PHPBENCH_TAG }}' >> $GITHUB_STEP_SUMMARY
echo ' ' >> $GITHUB_STEP_SUMMARY
echo '---' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
composer test:benchmark -- --tag=${{ env.PHPBENCH_TAG }} --progress=none >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
35 changes: 17 additions & 18 deletions .github/workflows/test-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,38 +63,37 @@ jobs:
php-${{ matrix.php-version }}-1.x-phpbench-
- name: Adding main headline
run: echo '# Flow PHP - Benchmark' >> $GITHUB_STEP_SUMMARY
run: |
echo '# Flow PHP - Benchmark' >> $GITHUB_STEP_SUMMARY
echo ' ' >> $GITHUB_STEP_SUMMARY
echo '---' >> $GITHUB_STEP_SUMMARY
- name: Adding extractors headline
- name: "Benchmark Extractors"
run: |
echo ' ' >> $GITHUB_STEP_SUMMARY
echo '## Extractors' >> $GITHUB_STEP_SUMMARY
echo ' ' >> $GITHUB_STEP_SUMMARY
echo '---' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
composer test:benchmark -- --ref=1.x --progress=none --group=extractor >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
- name: "Benchmark"
run: "composer test:benchmark -- --ref=1.x --progress=none --group=extractor >> $GITHUB_STEP_SUMMARY"

- name: Adding transformers headline
- name: "Benchmark Transformers"
run: |
echo '```' >> $GITHUB_STEP_SUMMARY
echo ' ' >> $GITHUB_STEP_SUMMARY
echo '## Transformers' >> $GITHUB_STEP_SUMMARY
echo ' ' >> $GITHUB_STEP_SUMMARY
echo '---' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
composer test:benchmark -- --ref=1.x --progress=none --group=transformer >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
- name: "Benchmark"
run: "composer test:benchmark -- --ref=1.x --progress=none --group=transformer >> $GITHUB_STEP_SUMMARY"

- name: Adding entry factory headline
- name: "Benchmark Entry Factories"
run: |
echo '```' >> $GITHUB_STEP_SUMMARY
echo ' ' >> $GITHUB_STEP_SUMMARY
echo '## Entry Factory' >> $GITHUB_STEP_SUMMARY
echo ' ' >> $GITHUB_STEP_SUMMARY
echo '---' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
- name: "Benchmark"
run: "composer test:benchmark -- --ref=1.x --progress=none --group=entry_factory >> $GITHUB_STEP_SUMMARY"

- name: Adding footer
run: echo '```' >> $GITHUB_STEP_SUMMARY
composer test:benchmark -- --ref=1.x --progress=none --group=entry_factory >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY

0 comments on commit 3e03d6e

Please sign in to comment.