Skip to content

Commit

Permalink
improve test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed Apr 13, 2024
1 parent b7c3df2 commit 9a55d4f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 16 deletions.
46 changes: 37 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: test
name: quickget test

# Controls when the action will run.
on:
Expand All @@ -10,31 +10,59 @@ on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: '**' #'!master' # excludes master
paths-ignore: [ '**/README.md' ]
paths: [ quickget ]
pull_request:
branches: '**' # matches every branch
paths-ignore: [ '**/README.md' ]
paths: [ quickget ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build-stable"
build-stable:
list_supported:
# The type of runner that the job will run on
runs-on: self-hosted
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@v3
- name: Prerequisites
run: |
echo " Supported:"
echo -e "\n\n Supported:\n"
./quickget -ls
echo " ISOs:"
echo -e "\n\n Finished\n\n"
list_ISOs:
# 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@v3
- name: Prerequisites
run: |
echo -e "\n\n ISOs:\n\n"
./quickget -li
echo " ISOs availability test:"
echo -e "\n\n Finished\n\n"
ISOs_availability_test:
# 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@v3
- name: Prereuisities
run: |
echo -e "\n\n ISOs availability test:\n\n"
./quickget -ti
echo " Finished"
echo -e "\n\n Finished\n\n"
14 changes: 7 additions & 7 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,9 @@ list_isos() {
elif [[ "${OS}" == "windows"* ]]; then
"languages_${OS}"
for OPTION in "${LANGS[@]}"; do
validate_release releases_${OS}
get_${OS} ${OPTION} | cut_1
echo "skipped: ${OS} ${RELEASE} ${OPTION}"
#validate_release releases_${OS}
#get_${OS} ${OPTION} | cut_1
done
#TODO NEEDED?
elif [[ "${OS}" == "macos" ]]; then
Expand Down Expand Up @@ -367,11 +368,10 @@ test_isos() {
done
elif [[ "${OS}" == "windows"* ]]; then
# skipping because of microsoft
echo "Windows skipped"
#"languages_${OS}"
#for OPTION in "${LANGS[@]}"; do
# check_it
#done
"languages_${OS}"
for OPTION in "${LANGS[@]}"; do
echo "skipped: ${OS} ${RELEASE} ${OPTION}"
done
else
validate_release releases_${OS}
URL=$(get_${OS} ${RELEASE} | cut_1)
Expand Down

0 comments on commit 9a55d4f

Please sign in to comment.