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

Commit 5f940af

Browse files
committed
tests step for yaml
healthcheck clean
1 parent d30f553 commit 5f940af

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

appveyor.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
version: 1.0.{build}
1+
version: 1.2.{build}
22
image: Visual Studio 2017
33
branches:
44
only:
55
- master
66
pull_requests:
77
do_not_increment_build_number: true
8+
89
init:
910
# Good practice, because Windows line endings are different from Unix/Linux ones
1011
- cmd: git config --global core.autocrlf true
@@ -13,5 +14,9 @@ before_build:
1314
- cmd: dotnet --version
1415
# Display minimal restore text
1516
- cmd: dotnet restore ./src --verbosity m
17+
1618
build_script:
17-
- cmd: dotnet build ./src
19+
- cmd: dotnet build ./src
20+
21+
test_script:
22+
- cmd: dotnet test ./src

azure-pipelines.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ variables:
1212
steps:
1313
- script: dotnet build ./src --configuration $(buildConfiguration)
1414
displayName: 'dotnet build $(buildConfiguration)'
15+
16+
- script: dotnet test ./src
17+
displayName: 'Running tests'
18+

src/Frontend/Jp.UI.SSO/Configuration/DbHealthChecker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ public bool TestConnection(DbContext context)
1111

1212
try
1313
{
14-
var testDb = context.Database.GetPendingMigrations(); // Check the database connection
14+
context.Database.GetPendingMigrations(); // Check the database connection
1515

1616
return true;
1717
}
18-
catch (Exception ex)
18+
catch
1919
{
2020
return false;
2121
}

0 commit comments

Comments
 (0)