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@v5 - 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}"