mirror of
https://github.com/quickemu-project/quickemu.git
synced 2024-06-02 13:05:28 +02:00
ci: count lines and output counts in the logs
This commit is contained in:
parent
9f11bb3d02
commit
5a07cc5d92
32
.github/workflows/quickget-tests.yml
vendored
32
.github/workflows/quickget-tests.yml
vendored
|
@ -33,11 +33,12 @@ jobs:
|
|||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v4
|
||||
- name: List all supported systems in plain text
|
||||
- name: List all supported OS variants
|
||||
run: |
|
||||
mkdir -p results
|
||||
echo -e "\n\n Supported:\n\n"
|
||||
./quickget -l | tee results/supported.txt
|
||||
echo -e "\n\nAll supported OS variants: $(cat results/supported.txt | wc -l)"
|
||||
echo -e "\n\n Finished\n\n"
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
|
@ -63,6 +64,7 @@ jobs:
|
|||
for os in ${distros}; do
|
||||
echo -e "\n\n ${os}" && ./quickget -12345 "${os}" | tee -a results/infos.txt
|
||||
done
|
||||
echo -e "\n\nHomepages aka number of supported OS (os_info): $(cat results/infos.txt | grep 'http' | wc -l)"
|
||||
echo -e "\n\n Finished\n\n"
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
|
@ -71,9 +73,15 @@ jobs:
|
|||
path: results/infos.txt
|
||||
|
||||
job3:
|
||||
name: All address
|
||||
needs: [job1]
|
||||
name: All URLs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: supported
|
||||
path: results/supported.txt
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
- name: List all supported systems download URLs
|
||||
run: |
|
||||
|
@ -84,6 +92,8 @@ jobs:
|
|||
for os in ${distros}; do
|
||||
echo -e "\n\n ${os}" && ./quickget -ua "${os}" | tee -a results/urls.txt
|
||||
done
|
||||
echo -e "\n\nFounded URLs: $(cat results/urls.txt | grep 'http' | wc -l)"
|
||||
echo -e "All: $(cat results/supported.txt | wc -l)"
|
||||
echo -e "\n\n Finished\n\n"
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
|
@ -105,9 +115,23 @@ jobs:
|
|||
for os in ${distros}; do
|
||||
echo -e "\n\n ${os}" && ./quickget -ca "${os}" | tee -a results/checks.txt
|
||||
done
|
||||
TOGETHER=$(cat results/checks.txt | wc -l)
|
||||
FAILED=$(grep -c 'FAIL:' results/checks.txt)
|
||||
SKIPED=$(grep -c 'SKIP:' results/checks.txt)
|
||||
PASSED=$(grep -c 'PASS:' results/checks.txt)
|
||||
CHECKED=$(($FAILED + $SKIPED + $PASSED))
|
||||
echo -e "\n\nFAILED: $FAILED"
|
||||
echo "SKIPED: $SKIPED"
|
||||
echo "PASSED: $PASSED"
|
||||
echo "All/Checked: $TOGETHER/$CHECKED"
|
||||
echo -e "Failed:\n$(grep 'FAIL:' results/checks.txt | tee results/failed.txt)"
|
||||
echo -e "\n\n Finished\n\n"
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: checks
|
||||
path: results/checks.txt
|
||||
name:
|
||||
checks
|
||||
failed
|
||||
path:
|
||||
results/checks.txt
|
||||
results/failed.txt
|
||||
|
|
Loading…
Reference in New Issue
Block a user