Skip to content

Commit

Permalink
ccc
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed Jan 11, 2025
1 parent 6b172b1 commit ff376ad
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/test-distros.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,16 @@ jobs:
- name: "Display ${{ matrix.config.os }} results 📊"
run: |
cat results/1LIST.txt | grep ${{ matrix.config.os }}
WINDOWS=$(grep -c "windows-" < results/${{ matrix.config.os }}.txt)
FAILED=$(grep -c ^FAIL < results/${{ matrix.config.os }}.txt)
SKIPPED=$(grep -c ^SKIP < results/${{ matrix.config.os }}.txt)
PASSED=$(grep -c ^PASS < results/${{ matrix.config.os }}.txt)
CHECKED=$((WINDOWS + FAILED + SKIPPED + PASSED))
echo -e "\nResults: ${{ matrix.config.os }}"
echo -e "- CHECKED:\t${CHECKED}" >> $GITHUB_STEP_SUMMARY
echo -e "- PASSED:\t${PASSED}" >> $GITHUB_STEP_SUMMARY
echo -e "- SKIPPED:\t${SKIPPED}\t(of which ${WINDOWS} are Windows)" >> $GITHUB_STEP_SUMMARY
echo -e "- FAILED:\t${FAILED}\n" >> $GITHUB_STEP_SUMMARY
echo "::set-output name=WINDOWS::$(grep -c "windows-" < results/${{ matrix.config.os }}.txt)"
echo "::set-output name=FAILED::$(grep -c ^FAIL < results/${{ matrix.config.os }}.txt)"
echo "::set-output name=SKIPPED::$(grep -c ^SKIP < results/${{ matrix.config.os }}.txt)"
echo "::set-output name=PASSED::$(grep -c ^PASS < results/${{ matrix.config.os }}.txt)"
echo "::set-output name=CHECKED::$((WINDOWS + FAILED + SKIPPED + PASSED))"
echo "Results: ${{ matrix.config.os }}"
echo "- CHECKED: $CHECKED" >> $GITHUB_STEP_SUMMARY
echo "- PASSED: $PASSED" >> $GITHUB_STEP_SUMMARY
echo "- SKIPPED: $SKIPPED (of which ${WINDOWS} are Windows)" >> $GITHUB_STEP_SUMMARY
echo "- FAILED: $FAILED" >> $GITHUB_STEP_SUMMARY
if grep -vq '^PASS:' results/${{ matrix.config.os }}.txt; then
echo "Failed checks for ${{ matrix.config.os }}:"
grep -v '^PASS:' results/${{ matrix.config.os }}.txt >> $GITHUB_STEP_SUMMARY
Expand Down

0 comments on commit ff376ad

Please sign in to comment.