-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: "Test quickget 🧪" | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- quickget | ||
pull_request: | ||
branches: | ||
- '**' | ||
paths: | ||
- quickget | ||
|
||
jobs: | ||
quickget-tests: | ||
name: "Run quickget tests 👟" | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: "Install dependencies 📦️" | ||
run: | | ||
sudo apt-get -y update | ||
sudo apt-get -y install curl qemu-utils | ||
- name: "List OS variants 📃" | ||
run: | | ||
mkdir -p results | ||
./quickget --list | tail -n +2 | tee results/list.txt | ||
- name: "Check OS downloads 💿️" | ||
run: | | ||
mkdir -p results | ||
./quickget --check | tee results/check.txt | ||
- name: "Display results 📊" | ||
run: | | ||
WINDOWS=$(grep -c "windows-" results/check.txt) | ||
FAILED=$(grep -c ^FAIL results/check.txt) | ||
SKIPPED=$(grep -c ^SKIP results/check.txt) | ||
PASSED=$(grep -c ^PASS results/check.txt) | ||
CHECKED=$((WINDOWS + FAILED + SKIPPED + PASSED)) | ||
echo -e "\nResults:" | ||
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/check.txt | tee results/failed.txt | ||
VARIATIONS=$(wc -l results/list.txt | cut -d' ' -f 1) | ||
DOWNLOADS=$(wc -l results/check.txt | cut -d' ' -f 1) | ||
echo | ||
echo "Compare OS variations with downloads:" | ||
echo -e "- Variations:\t${VARIATIONS}" | ||
echo -e "- Downloads:\t${DOWNLOADS}" |