Skip to content

Commit

Permalink
split testing file
Browse files Browse the repository at this point in the history
#79

- use separate files for testing
  - regular issues
  - different language issues
  - special issues
  - educational issues
  • Loading branch information
joergi committed Oct 14, 2022
1 parent 4dd5645 commit 1de5751
Show file tree
Hide file tree
Showing 4 changed files with 170 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testing-educational-issues.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 Scripts
name: Testing educational issues

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
Expand Down
169 changes: 167 additions & 2 deletions .github/workflows/testing-language-issues.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 Scripts
name: Testing language issues

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
Expand Down Expand Up @@ -52,7 +52,172 @@ jobs:
files: "french_issues/MagPi_Mini_French_01.pdf, italian_issues/MagPi_Mini_Italian_02.pdf, hebrew_issues/MagPi_Mini_Hebrew_01.pdf, spanish_issues/MagPi_Mini_Spanish_03.pdf"
allow_failure: false
- name: lslah issues
run: Get-ChildItem –path D:\a\MagPiDownloader\MagPiDownloader\french_issues,D:\a\MagPiDownloader\MagPiDownloader\italian_issues,D:\a\MagPiDownloader\MagPiDownloader\hebrew_issues,D:\a\MagPiDownloader\MagPiDownloader\spanish_issues
run: Get-ChildItem –pat## This is a basic workflow to help you get started with Actions
#
#name: Test Scripts
#
## Controls when the action will run. Triggers the workflow on push or pull request
## events but only for the main branch
#on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
#
## A workflow run is made up of one or more jobs that can run sequentially or in parallel
#jobs:
# read_recent_issue:
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v3.1.0
# - uses: pCYSl5EDgo/cat@master
# id: read_recent
# with:
# path: issues.txt
# - run: echo $TEXT
# env:
# TEXT: ${{ steps.read_recent.outputs.text }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# powershell:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3.1.0
# - name: Download Education Issues
# id: educationIssues
# shell: pwsh
# run: ./windows/magpi-education-downloader.ps1
# - name: Download Issues With end limit
# id: normalIssuesWithEndLimit
# shell: pwsh
# run: ./windows/magpi-issue-downloader.ps1 -l 3
# - name: Download Issues with start and end limit
# id: normalIssuesWithRange
# shell: pwsh
# run: ./windows/magpi-issue-downloader.ps1 -f 95 -l 96
# - name: Download Issues with start and end limit
# id: normalIssuesWithStartingLimit
# shell: pwsh
# run: ./windows/magpi-issue-downloader.ps1 -f 99
# - name: Download French Issues
# id: frenchIssues
# shell: pwsh
# run: ./windows/magpi-issue-downloader_french.ps1
# - name: Download Hebrew Issues
# id: hebrewIssues
# shell: pwsh
# run: ./windows/magpi-issue-downloader_hebrew.ps1
# - name: Download Italian Issues
# id: italianIssues
# shell: pwsh
# run: ./windows/magpi-issue-downloader_italian.ps1
# - name: Download Spanish Issues
# id: spanishIssues
# shell: pwsh
# run: ./windows/magpi-issue-downloader_spanish.ps1
# - name: Download Special Issues
# id: specialIssues
# shell: pwsh
# run: ./windows/magpi-special-issue-downloader.ps1
# - name: "Check file existence Windows"
# id: check_files
# uses: andstor/file-existence-action@v1.1.0
# with:
# files: "issues/the-magpi-issue-3.pdf, issues/the-magpi-issue-96.pdf, issues/the-magpi-issue-101.pdf, french_issues/MagPi_Mini_French_01.pdf, italian_issues/MagPi_Mini_Italian_02.pdf, hebrew_issues/MagPi_Mini_Hebrew_01.pdf, spanish_issues/MagPi_Mini_Spanish_03.pdf, special_issues/Essentials_Games_v1.pdf"
# allow_failure: false
# - name: lslah issues
# run: Get-ChildItem –path D:\a\MagPiDownloader\MagPiDownloader\issues,D:\a\MagPiDownloader\MagPiDownloader\french_issues,D:\a\MagPiDownloader\MagPiDownloader\italian_issues,D:\a\MagPiDownloader\MagPiDownloader\hebrew_issues,D:\a\MagPiDownloader\MagPiDownloader\spanish_issues,D:\a\MagPiDownloader\MagPiDownloader\special_issues
# - name: File exists
# if: steps.check_files.outputs.files_exists == 'false'
# run: exit 1
#
# bash-linux:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3.1.0
# - name: Download Education Issues
# id: educationIssues
# run: bash ./linux_mac/magpi-education-downloader.sh
# - name: Download Issues with end limit
# id: normalIssuesWithEndLimit
# run: bash ./linux_mac/magpi-issue-downloader.sh -l 2
# - name: Download Issues with start limit
# id: normalIssuesWithStartLimit
# run: bash ./linux_mac/magpi-issue-downloader.sh -f 99
# - name: Download Issues with start and end limit
# id: normalIssuesWithRange
# run: bash ./linux_mac/magpi-issue-downloader.sh -f 95 -l 96
# - name: Download French Issues
# id: frenchIssues
# run: bash ./linux_mac/magpi-issue-downloader_french.sh
# - name: Download Hebrew Issues
# id: hebrewIssues
# run: bash ./linux_mac/magpi-issue-downloader_hebrew.sh
# - name: Download Italian Issues
# id: italianIssues
# run: bash ./linux_mac/magpi-issue-downloader_italian.sh
# - name: Download Spanish Issues
# id: spanishIssues
# run: bash ./linux_mac/magpi-issue-downloader_spanish.sh
# - name: Download Special Issues
# id: specialIssues
# run: bash ./linux_mac/magpi-special-issue-downloader.sh
## check if files are existing
# - name: "Check file existence Linux"
# id: check_files
# uses: andstor/file-existence-action@v1.1.0
# with:
# files: "issues/MagPi02.pdf, issues/MagPi96.pdf, issues/MagPi101.pdf, french_issues/MagPi_Mini_French_01.pdf, italian_issues/MagPi_Mini_Italian_02.pdf, hebrew_issues/MagPi_Mini_Hebrew_01.pdf, spanish_issues/MagPi_Mini_Spanish_03.pdf, special_issues/MagPiSE1.pdf, special_issues/Projects_Book_v3.pdf, special_issues/Essentials_Camera_v1.pdf, special_issues/Retro_Gaming.pdf, special_issues/Camera-Guide.pdf"
# allow_failure: false
# - name: lslah
# run: ls -lah issues/ french_issues/ italian_issues/ hebrew_issues/ spanish_issues/ special_issues/
# - name: File exists
# if: steps.check_files.outputs.files_exists == 'false'
# run: exit 1
# bash-macos:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v3.1.0
# - name: Download Education Issues
# id: educationIssues
# run: bash ./linux_mac/magpi-education-downloader.sh
# - name: Download Issues with end limit
# id: normalIssuesWithEndLimit
# run: bash ./linux_mac/magpi-issue-downloader.sh -l 2
# - name: Download Issues with start limit
# id: normalIssuesWithStartLimit
# run: bash ./linux_mac/magpi-issue-downloader.sh -f 99
# - name: Download Issues with start and end limit
# id: normalIssuesWithRange
# run: bash ./linux_mac/magpi-issue-downloader.sh -f 95 -l 96
# - name: Download French Issues
# id: frenchIssues
# run: bash ./linux_mac/magpi-issue-downloader_french.sh
# - name: Download Hebrew Issues
# id: hebrewIssues
# run: bash ./linux_mac/magpi-issue-downloader_hebrew.sh
# - name: Download Italian Issues
# id: italianIssues
# run: bash ./linux_mac/magpi-issue-downloader_italian.sh
# - name: Download Spanish Issues
# id: spanishIssues
# run: bash ./linux_mac/magpi-issue-downloader_spanish.sh
# - name: Download Special Issues
# id: specialIssues
# run: bash ./linux_mac/magpi-special-issue-downloader.sh
## check if files are existing
# - name: "Check file existence MacOs"
# id: check_files
# uses: andstor/file-existence-action@v1.1.0
# with:
# files: "issues/MagPi02.pdf, issues/MagPi95.pdf, issues/MagPi101.pdf, french_issues/MagPi_Mini_French_01.pdf, italian_issues/MagPi_Mini_Italian_02.pdf, hebrew_issues/MagPi_Mini_Hebrew_01.pdf, spanish_issues/MagPi_Mini_Spanish_03.pdf, special_issues/MagPiSE1.pdf, special_issues/Projects_Book_v3.pdf, special_issues/Essentials_Camera_v1.pdf, special_issues/Retro_Gaming.pdf, special_issues/Camera-Guide.pdf"
# allow_failure: false
# - name: lslah
# run: ls -lah issues/ french_issues/ italian_issues/ hebrew_issues/ spanish_issues/ special_issues/
# - name: File exists
# if: steps.check_files.outputs.files_exists == 'false'
# run: exit 1
h D:\a\MagPiDownloader\MagPiDownloader\french_issues,D:\a\MagPiDownloader\MagPiDownloader\italian_issues,D:\a\MagPiDownloader\MagPiDownloader\hebrew_issues,D:\a\MagPiDownloader\MagPiDownloader\spanish_issues
- name: File exists
if: steps.check_files.outputs.files_exists == 'false'
run: exit 1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testing-regular-issues.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 Scripts
name: Testing regular issues

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testing-special-issues.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 Scripts
name: Testing special issues

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
Expand Down

0 comments on commit 1de5751

Please sign in to comment.