Skip to content

Commit

Permalink
cc
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed Jan 11, 2025
1 parent 3dff643 commit d24529a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/test-distros.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,23 +156,23 @@ jobs:
- name: "Check ${{ matrix.config.os }} downloads 💿️"
run: |
mkdir -p results
./quickget --check ${{ matrix.config.os }} | tee results/${{ matrix.config.os }}.txt >> $GITHUB_STEP_SUMMARY || echo "### ${{ matrix.config.os }} :goberserk:" >> $GITHUB_STEP_SUMMARY
./quickget --check ${{ matrix.config.os }} | tee results/${{ matrix.config.os }}.txt || echo "### ${{ matrix.config.os }} :goberserk:" >> $GITHUB_STEP_SUMMARY
- name: "Display ${{ matrix.config.os }} results 📊"
run: |
RESULTS_FILE=results/${{ matrix.config.os }}.txt
if [[ -f $RESULTS_FILE ]]; then
if [[ -f "${RESULTS_FILE}" ]]; then
WINDOWS=$(grep -c "windows-" $RESULTS_FILE)
FAILED=$(grep -c ^FAIL $RESULTS_FILE)
SKIPPED=$(grep -c ^SKIP $RESULTS_FILE)
PASSED=$(grep -c ^PASS $RESULTS_FILE)
PASSED=$(grep -c ^PASS "$RESULTS_FILE")
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
grep ^FAIL $RESULTS_FILE | tee -a results/failed.txt
echo -e "- CHECKED:\t${CHECKED}"
echo -e "- PASSED:\t${PASSED}"
echo -e "- SKIPPED:\t${SKIPPED}\t(of which ${WINDOWS} are Windows)"
echo -e "- FAILED:\t${FAILED}\n"
grep ^FAIL "$RESULTS_FILE" | tee -a results/failed.txt >> $GITHUB_STEP_SUMMARY
VARIATIONS=$(wc -l results/list.txt | cut -d' ' -f 1)
DOWNLOADS=$(wc -l $RESULTS_FILE | cut -d' ' -f 1)
echo
Expand Down

0 comments on commit d24529a

Please sign in to comment.