forked from abpframework/abp-samples
-
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.
Configure build & test GitHub action for the abp-samples repository.
Resolve #abpframework/abp#3964
- Loading branch information
Showing
8 changed files
with
87 additions
and
3 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,24 @@ | ||
name: "build and test" | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
jobs: | ||
build-test: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-dotnet@master | ||
with: | ||
dotnet-version: 3.1.100 | ||
|
||
- name: Build All | ||
run: .\build-all.ps1 | ||
working-directory: .\build | ||
shell: powershell | ||
|
||
- name: Test All | ||
run: .\test-all.ps1 | ||
working-directory: .\build | ||
shell: powershell |
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
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
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,16 @@ | ||
. ".\common.ps1" | ||
|
||
# Build all solutions | ||
|
||
foreach ($solutionPath in $solutionPaths) { | ||
$solutionAbsPath = (Join-Path $rootFolder $solutionPath) | ||
Set-Location $solutionAbsPath | ||
dotnet build | ||
if (-Not $?) { | ||
Write-Host ("Build failed for the solution: " + $solutionPath) | ||
Set-Location $rootFolder | ||
exit $LASTEXITCODE | ||
} | ||
} | ||
|
||
Set-Location $rootFolder |
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,21 @@ | ||
# COMMON PATHS | ||
|
||
$rootFolder = (Get-Item -Path "./" -Verbose).FullName | ||
|
||
# List of solutions | ||
|
||
$solutionPaths = ( | ||
"../aspnet-core/Authentication-Customization", | ||
"../BasicAspNetCoreApplication", | ||
"../BasicConsoleApplication", | ||
"../BookStore", | ||
"../BookStore-Angular-MongoDb/aspnet-core", | ||
"../BookStore-Modular/modules/book-management", | ||
"../BookStore-Modular/application", | ||
"../DashboardDemo", | ||
"../EfCoreMigrationDemo", | ||
"../PostgeSqlDemo", | ||
"../RabbitMqEventBus", | ||
"../SignalRDemo", | ||
"../TextTemplateDemo" | ||
) |
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,16 @@ | ||
. ".\common.ps1" | ||
|
||
# Test all solutions | ||
|
||
foreach ($solutionPath in $solutionPaths) { | ||
$solutionAbsPath = (Join-Path $rootFolder $solutionPath) | ||
Set-Location $solutionAbsPath | ||
dotnet test --no-build --no-restore | ||
if (-Not $?) { | ||
Write-Host ("Test failed for the solution: " + $solutionPath) | ||
Set-Location $rootFolder | ||
exit $LASTEXITCODE | ||
} | ||
} | ||
|
||
Set-Location $rootFolder |