forked from eficode-academy/git-katas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create GitHub actions CI pipeline for running test scripts (eficode-a…
…cademy#265) * Create CI pipeline running test scripts * Fix CI definition * Add execute access to test.sh * Fix CI definition * Make test.ps1 go through all exercises * Add git user for submodules kata * Add git user for submodules kata * Fix setup.ps1 for submodules kata * Add MacOS to GitHub actions jobs
- Loading branch information
Showing
3 changed files
with
64 additions
and
4 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,42 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
setup-bash: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run bash test scripts | ||
shell: bash | ||
run: | | ||
chmod +x ./test.sh | ||
./test.sh | ||
setup-bash-macos: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run bash test scripts | ||
shell: bash | ||
run: | | ||
chmod +x ./test.sh | ||
./test.sh | ||
setup-pwsh: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run PowerShell Core test scripts | ||
run: ./test.ps1 | ||
shell: pwsh |
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
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
cd basic-commits | ||
.\setup.ps1 | ||
cd .. | ||
Get-ChildItem -Attributes Directory | | ||
ForEach-Object { | ||
if ($(Get-ChildItem $_.Name setup.ps1)) | ||
{ | ||
Push-Location $_.Name | ||
Write-Output "`nRunning setup script for kata $($_.Name)" | ||
.\setup.ps1 | ||
Pop-Location | ||
} | ||
} |