From c606e555dcbddde24c9c5f5fa59408ede6dc5e3f Mon Sep 17 00:00:00 2001 From: zen0bit Date: Fri, 3 May 2024 11:34:08 +0200 Subject: [PATCH] LET ME TEST THIS IN CI PLEASE Your yaml file have bug which I already repaired... --- .github/workflows/test-quickget.yml | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test-quickget.yml b/.github/workflows/test-quickget.yml index 8ed97753b8..1f021bdfd5 100644 --- a/.github/workflows/test-quickget.yml +++ b/.github/workflows/test-quickget.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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) @@ -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/