ci: misc fixes

This commit is contained in:
zen0bit 2024-05-02 11:08:46 +02:00 committed by Martin Wimpress
parent b7ff9f90db
commit 88d61eae4e
1 changed files with 11 additions and 11 deletions

View File

@ -75,7 +75,7 @@ jobs:
retention-days: 1 retention-days: 1
job3: job3:
needs: [job1] needs: job1
name: All URLs name: All URLs
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -85,14 +85,14 @@ jobs:
export TERM=xterm-256color export TERM=xterm-256color
echo -e "\n\n ISOs:\n\n" echo -e "\n\n ISOs:\n\n"
mkdir -p results mkdir -p results
./quickget -u | tee -a urls-ns.txt ./quickget -u | tee -a url.txt
cat urls-ns.txt | sort > results/urls.txt cat url.txt | sort > results/urls.txt
- uses: actions/download-artifact@v4 - uses: actions/download-artifact@v4
with: with:
path: results path: results
merge-multiple: true merge-multiple: true
- name: Show Founded/All difference - name: Show differences
run: | run: |
ls -R results/ ls -R results/
echo -e "\n\nFounded/All URLs: $(cat results/urls.txt | grep 'http' | wc -l)/$(cat results/supported.txt | wc -l)" echo -e "\n\nFounded/All URLs: $(cat results/urls.txt | grep 'http' | wc -l)/$(cat results/supported.txt | wc -l)"
@ -109,13 +109,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Checking if all downloads for Operating Systems are available... - name: Checking if all downloads for Operating Systems are available
run: | run: |
export TERM=xterm-256color export TERM=xterm-256color
echo -e "\n\n ISOs availability:\n\n" echo -e "\n\n ISOs availability:\n\n"
mkdir -p results mkdir -p results
./quickget -c | tee -a checks-ns.txt ./quickget -c | tee -a check.txt
cat checks-ns.txt | sort > results/checks.txt cat check.txt | sort > results/checks.txt
GOOD=$(cat results/checks.txt | grep 'http' | wc -l) GOOD=$(cat results/checks.txt | grep 'http' | wc -l)
WINDOWS=$(cat results/checks.txt | grep 'windows' | wc -l) WINDOWS=$(cat results/checks.txt | grep 'windows' | wc -l)
ALL=$((GOOD + WINDOWS)) ALL=$((GOOD + WINDOWS))
@ -126,7 +126,7 @@ jobs:
echo -e "\n\nFAILED: $FAILED" echo -e "\n\nFAILED: $FAILED"
echo "SKIPPED: $SKIPPED" echo "SKIPPED: $SKIPPED"
echo "PASSED: $PASSED" echo "PASSED: $PASSED"
echo "Checked/known URLs: $CHECKED/$ALL (counted with skipped Windows) echo "Checked/known URLs: $CHECKED/$ALL with skipped Windows
echo -e "Failed:\n$(grep 'FAIL:' results/checks.txt | tee -a 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"
@ -149,9 +149,9 @@ jobs:
with: with:
path: results path: results
merge-multiple: true merge-multiple: true
- name: List results name: List results
run: | run: |
ls -R results/ ls -R results/
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with: