mirror of https://github.com/abpframework/abp.git
2 changed files with 63 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||||
|
name: 'Main' |
||||
|
on: |
||||
|
pull_request: |
||||
|
paths: |
||||
|
- 'framework/**' |
||||
|
- 'modules/**' |
||||
|
branches: |
||||
|
- dev |
||||
|
jobs: |
||||
|
build-test: |
||||
|
runs-on: windows-latest |
||||
|
steps: |
||||
|
- uses: actions/checkout@v1 |
||||
|
- uses: actions/setup-dotnet@master |
||||
|
with: |
||||
|
dotnet-version: '3.0.100' |
||||
|
|
||||
|
- name: Build All |
||||
|
run: .\build-all.ps1 |
||||
|
shell: pwsh |
||||
|
|
||||
|
- name: Test All |
||||
|
run: .\test-all.ps1 |
||||
|
shell: pwsh |
||||
@ -0,0 +1,39 @@ |
|||||
|
# COMMON PATHS |
||||
|
|
||||
|
$rootFolder = (Get-Item -Path "./" -Verbose).FullName |
||||
|
|
||||
|
# List of solutions |
||||
|
|
||||
|
$solutionPaths = ( |
||||
|
"framework", |
||||
|
"modules/users", |
||||
|
"modules/permission-management", |
||||
|
"modules/setting-management", |
||||
|
"modules/feature-management", |
||||
|
"modules/identity", |
||||
|
"modules/identityserver", |
||||
|
"modules/tenant-management", |
||||
|
"modules/account", |
||||
|
"modules/docs", |
||||
|
"modules/blogging", |
||||
|
"modules/audit-logging", |
||||
|
"modules/background-jobs", |
||||
|
"modules/client-simulation", |
||||
|
"templates/module/aspnet-core", |
||||
|
"templates/app/aspnet-core" |
||||
|
) |
||||
|
|
||||
|
# Build all solutions |
||||
|
|
||||
|
foreach ($solutionPath in $solutionPaths) { |
||||
|
$solutionAbsPath = (Join-Path $rootFolder $solutionPath) |
||||
|
Set-Location $solutionAbsPath |
||||
|
dotnet test |
||||
|
if (-Not $?) { |
||||
|
Write-Host ("Test failed for the solution: " + $solutionPath) |
||||
|
Set-Location $rootFolder |
||||
|
exit $LASTEXITCODE |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
Set-Location $rootFolder |
||||
Loading…
Reference in new issue