-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#79 - use separate files for testing - regular issues - different language issues - special issues - educational issues
- Loading branch information
Showing
5 changed files
with
603 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
# 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: "Check file existence Windows" | ||
id: check_files | ||
uses: andstor/file-existence-action@v1.1.0 | ||
with: | ||
files: "education_issues/MagPi-EduEdition02.pdf" | ||
allow_failure: false | ||
- name: lslah issues | ||
run: Get-ChildItem –path D:\a\MagPiDownloader\MagPiDownloader\education_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: "education_issues/MagPi-EduEdition02.pdf" | ||
allow_failure: false | ||
- name: lslah | ||
run: ls -lah education_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: "education_issues/MagPi-EduEdition02.pdf" | ||
allow_failure: false | ||
- name: lslah | ||
run: ls -lah education_issues | ||
- name: File exists | ||
if: steps.check_files.outputs.files_exists == 'false' | ||
run: exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# 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 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: "Check file existence Windows" | ||
id: check_files | ||
uses: andstor/file-existence-action@v1.1.0 | ||
with: | ||
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 | ||
- 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 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 | ||
# check if files are existing | ||
- name: "Check file existence Linux" | ||
id: check_files | ||
uses: andstor/file-existence-action@v1.1.0 | ||
with: | ||
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 | ||
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 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 | ||
# check if files are existing | ||
- name: "Check file existence MacOs" | ||
id: check_files | ||
uses: andstor/file-existence-action@v1.1.0 | ||
with: | ||
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 | ||
run: ls -lah french_issues/ italian_issues/ hebrew_issues/ spanish_issues/ | ||
- name: File exists | ||
if: steps.check_files.outputs.files_exists == 'false' | ||
run: exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
# 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 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: "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" | ||
allow_failure: false | ||
- name: lslah issues | ||
run: Get-ChildItem –path D:\a\MagPiDownloader\MagPiDownloader\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 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 | ||
# 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" | ||
allow_failure: false | ||
- name: lslah | ||
run: ls -lah 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 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 | ||
# 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" | ||
allow_failure: false | ||
- name: lslah | ||
run: ls -lah issues/ | ||
- name: File exists | ||
if: steps.check_files.outputs.files_exists == 'false' | ||
run: exit 1 |
Oops, something went wrong.