ci: save failed.txt and compare URLs/All supported

This commit is contained in:
zen0bit 2024-04-30 08:11:20 +02:00 committed by Martin Wimpress
parent 5a07cc5d92
commit 88d731895a
1 changed files with 16 additions and 13 deletions

View File

@ -79,8 +79,10 @@ jobs:
steps: steps:
- uses: actions/download-artifact@v4 - uses: actions/download-artifact@v4
with: with:
name: supported path: results
path: results/supported.txt merge-multiple: true
- name: Display downloaded artifacts
run: ls -R results/
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: List all supported systems download URLs - name: List all supported systems download URLs
@ -92,8 +94,7 @@ jobs:
for os in ${distros}; do for os in ${distros}; do
echo -e "\n\n ${os}" && ./quickget -ua "${os}" | tee -a results/urls.txt echo -e "\n\n ${os}" && ./quickget -ua "${os}" | tee -a results/urls.txt
done done
echo -e "\n\nFounded URLs: $(cat results/urls.txt | grep 'http' | wc -l)" echo -e "\n\nFounded/All URLs: $(cat results/urls.txt | grep 'http' | wc -l)/$(cat results/supported.txt | wc -l)"
echo -e "All: $(cat results/supported.txt | wc -l)"
echo -e "\n\n Finished\n\n" echo -e "\n\n Finished\n\n"
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
@ -115,7 +116,7 @@ jobs:
for os in ${distros}; do for os in ${distros}; do
echo -e "\n\n ${os}" && ./quickget -ca "${os}" | tee -a results/checks.txt echo -e "\n\n ${os}" && ./quickget -ca "${os}" | tee -a results/checks.txt
done done
TOGETHER=$(cat results/checks.txt | wc -l) ALL=$(cat results/checks.txt | grep 'http' | wc -l)
FAILED=$(grep -c 'FAIL:' results/checks.txt) FAILED=$(grep -c 'FAIL:' results/checks.txt)
SKIPED=$(grep -c 'SKIP:' results/checks.txt) SKIPED=$(grep -c 'SKIP:' results/checks.txt)
PASSED=$(grep -c 'PASS:' results/checks.txt) PASSED=$(grep -c 'PASS:' results/checks.txt)
@ -123,15 +124,17 @@ jobs:
echo -e "\n\nFAILED: $FAILED" echo -e "\n\nFAILED: $FAILED"
echo "SKIPED: $SKIPED" echo "SKIPED: $SKIPED"
echo "PASSED: $PASSED" echo "PASSED: $PASSED"
echo "All/Checked: $TOGETHER/$CHECKED" echo "All/Checked: $ALL/$CHECKED"
echo -e "Failed:\n$(grep 'FAIL:' results/checks.txt | tee results/failed.txt)" echo -e "Failed:\n$(grep 'FAIL:' results/checks.txt | tee -a results/failed.txt)"
echo -e "\n\n Finished\n\n" echo -e "\n\n Finished\n\n"
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: name: checks
checks path: results/checks.txt
failed
path:
results/checks.txt - uses: actions/upload-artifact@v4
results/failed.txt with:
name: failed
path: results/failed.txt