Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

Commit

Permalink
tests step for yaml
Browse files Browse the repository at this point in the history
healthcheck clean
  • Loading branch information
brunobritodev committed Mar 29, 2019
1 parent d30f553 commit 5f940af
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
9 changes: 7 additions & 2 deletions appveyor.yml
@@ -1,10 +1,11 @@
version: 1.0.{build}
version: 1.2.{build}
image: Visual Studio 2017
branches:
only:
- master
pull_requests:
do_not_increment_build_number: true

init:
# Good practice, because Windows line endings are different from Unix/Linux ones
- cmd: git config --global core.autocrlf true
Expand All @@ -13,5 +14,9 @@ before_build:
- cmd: dotnet --version
# Display minimal restore text
- cmd: dotnet restore ./src --verbosity m

build_script:
- cmd: dotnet build ./src
- cmd: dotnet build ./src

test_script:
- cmd: dotnet test ./src
4 changes: 4 additions & 0 deletions azure-pipelines.yml
Expand Up @@ -12,3 +12,7 @@ variables:
steps:
- script: dotnet build ./src --configuration $(buildConfiguration)
displayName: 'dotnet build $(buildConfiguration)'

- script: dotnet test ./src
displayName: 'Running tests'

4 changes: 2 additions & 2 deletions src/Frontend/Jp.UI.SSO/Configuration/DbHealthChecker.cs
Expand Up @@ -11,11 +11,11 @@ public bool TestConnection(DbContext context)

try
{
var testDb = context.Database.GetPendingMigrations(); // Check the database connection
context.Database.GetPendingMigrations(); // Check the database connection

return true;
}
catch (Exception ex)
catch
{
return false;
}
Expand Down

0 comments on commit 5f940af

Please sign in to comment.