Skip to content

Commit

Permalink
LET ME TEST THIS IN CI PLEASE
Browse files Browse the repository at this point in the history
Your yaml file have bug which I already repaired...
  • Loading branch information
zen0bit committed May 3, 2024
1 parent 47c62c0 commit c606e55
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/test-quickget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ on:
# - cron: "0 0 */12 * *"
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: '**' #'!master' # excludes master
paths: [ quickget ]
branches: '**' # '!master' excludes master
paths:
- quickget
pull_request:
branches: '**' # matches every branch
paths:
- quickget

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -25,9 +25,6 @@ jobs:
list-supported:
name: List supported OS
runs-on: ubuntu-22.04
# The type of runner that the job will run on
#runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
Expand All @@ -52,14 +49,14 @@ jobs:
- uses: actions/checkout@v4
- name: Show info about all OS
run: |
export TERM=xterm-256color
export TERM=xterm
echo -e "\n\n OSinfo:\n\n"
mkdir -p results
distros="$(./quickget | sed '/^$/q' | tail -n +3)"
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\nsupported OS (os_info): $(cat results/infos.txt | grep 'http' | wc -l)"
echo -e "\n\n Finished\n\n"
- uses: actions/upload-artifact@v4
Expand All @@ -76,7 +73,7 @@ jobs:
- uses: actions/checkout@v4
- name: List all supported systems download URLs
run: |
export TERM=xterm-256color
export TERM=xterm
echo -e "\n\n ISOs:\n\n"
mkdir -p results
./quickget -u | tee -a url.txt
Expand Down Expand Up @@ -105,13 +102,13 @@ jobs:
- uses: actions/checkout@v4
- name: Checking if all downloads for Operating Systems are available
run: |
export TERM=xterm-256color
export TERM=xterm
echo -e "\n\n ISOs availability:\n\n"
mkdir -p results
./quickget --check | tee -a check.txt
cat check.txt | sort > results/checks.txt
GOOD=$(cat results/checks.txt | grep 'http' | wc -l)
WINDOWS=$(cat results/checks.txt | grep 'windows' | wc -l)
GOOD=$(grep -c 'http' results/checks.txt)
WINDOWS=$(grep -c 'windows' results/checks.txt)
ALL=$((GOOD + WINDOWS))
FAILED=$(grep -c 'FAIL:' results/checks.txt)
SKIPPED=$(grep -c 'SKIP:' results/checks.txt)
Expand Down Expand Up @@ -143,12 +140,11 @@ jobs:
with:
path: results
merge-multiple: true
name: List results
run: |
ls -R results/
- name: results
run: |
ls -R results/
- uses: actions/upload-artifact@v4
with:
overwrite: true
name: results
path: results/

0 comments on commit c606e55

Please sign in to comment.