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 f41d339 commit 3495b95
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions .github/workflows/test-distros.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
./quickget --list | tail -n +2 | tee results/list.txt
tests:
name: "💿️ check"
name: "Check 💿️"
runs-on: ubuntu-22.04
container:
image: ubuntu:22.04
Expand Down Expand Up @@ -154,31 +154,35 @@ jobs:
run: |
mkdir -p results
./quickget --list | tail -n +2 | tee results/list.txt
cat results/list.txt
- name: Upload list results
uses: actions/upload-artifact@v3
with:
name: results
path: results/

- name: "Check ${{ matrix.config.os }} downloads 💿️"
run: |
mkdir -p results
./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: |
mkdir -p results
cat results/list.txt
RESULTS_FILE=results/${{ matrix.config.os }}.txt
if [[ -f "${RESULTS_FILE}" ]]; then
while read -r line; do
if [[ ! $line =~ ^PASS: ]]; then
echo "$line" >> $GITHUB_STEP_SUMMARY
fi
done < "$RESULTS_FILE"
VARIATIONS=$(wc -l results/list.txt | cut -d' ' -f 1)
DOWNLOADS=$(wc -l $RESULTS_FILE | cut -d' ' -f 1)
echo
echo "Compare OS variations with downloads:"
echo -e "- Variations:\t${VARIATIONS}"
echo -e "- Downloads:\t${DOWNLOADS}"
else
echo "Results file not found for ${{ matrix.config.os }}."
fi
VARIATIONS=$(wc -l results/list.txt | cut -d' ' -f 1)
DOWNLOADS=$(wc -l results/${{ matrix.config.os }}.txt | cut -d' ' -f 1)
echo
echo "Compare OS variations with downloads:"
echo -e "- Variations:\t${VARIATIONS}"
echo -e "- Downloads:\t${DOWNLOADS}"
while read -r line; do
if [[ ! $line =~ ^PASS: ]]; then
echo "$line" >> $GITHUB_STEP_SUMMARY
echo "${{ matrix.config.os }}: $line" >> results/strange.txt
fi
done < results/${{ matrix.config.os }}.txt
cat results/strange.txt
- name: Upload ${{ matrix.config.os }} results
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 3495b95

Please sign in to comment.