File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 24
24
CONNECTION_STRING : " Host=localhost;Username=nhibernate;Password=nhibernate;Database=nhibernate;Enlist=true;"
25
25
OS : ubuntu-latest
26
26
DB_INIT : |
27
- docker run -d -e POSTGRES_USER=nhibernate -e POSTGRES_PASSWORD=nhibernate -e POSTGRES_DB=nhibernate -p 5432:5432 postgres:13
27
+ docker run -d -e POSTGRES_USER=nhibernate -e POSTGRES_PASSWORD=nhibernate -e POSTGRES_DB=nhibernate -p 5432:5432 postgres:13
28
+ - DB : PostgreSQL
29
+ CONNECTION_STRING : " Host=localhost;Username=postgres;Password=nhibernate;Database=nhibernate;Enlist=true;"
30
+ OS : windows-latest
31
+ DB_INIT : |
32
+ choco install postgresql13 --no-progress --params '/Password:nhibernate'
33
+ Add-Content -Path 'C:\Program Files\PostgreSQL\13\data\postgresql.conf' -Value "`r`nmax_prepared_transactions = 100"
34
+ Start-Service 'postgresql-x64-13'
28
35
- DB : Firebird
29
36
CONNECTION_STRING : " DataSource=localhost;Database=nhibernate;User=SYSDBA;Password=nhibernate;charset=utf8;"
30
37
OS : ubuntu-latest
@@ -55,12 +62,17 @@ jobs:
55
62
steps :
56
63
- name : Set up ${{matrix.DB}}
57
64
run : ${{matrix.DB_INIT}}
58
- - uses : actions/checkout@v4
59
- - name : Setup .NET
65
+
66
+ - name : Set up .NET
60
67
uses : actions/setup-dotnet@v4
61
68
with :
62
69
dotnet-version : 8.0.x
63
70
71
+ - name : Checkout
72
+ uses : actions/checkout@v4
73
+ with :
74
+ show-progress : false
75
+
64
76
- name : Build and Test
65
77
run : |
66
78
pwsh -noprofile -command "& ./build.ps1 -TaskList Set-Configuration,Test -properties @{'Database' = '${{matrix.DB}}';'ConnectionString'='${{matrix.CONNECTION_STRING}}'}"
Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ environment:
6
6
CONNECTION_STRING : Server=(local)\SQL2017;User ID=sa;Password=Password12!;initial catalog=nhibernate;
7
7
- DB : SqlServer2008-MicrosoftDataSqlClientDriver
8
8
CONNECTION_STRING : Server=(local)\SQL2017;User ID=sa;Password=Password12!;initial catalog=nhibernate;
9
- - DB : PostgreSQL
10
- CONNECTION_STRING : Host=localhost;Port=5432;Username=postgres;Password=Password12!;Database=nhibernate;Enlist=true;
11
9
- DB : Firebird
12
10
- DB : Firebird4
13
11
- DB : MySQL
@@ -68,11 +66,6 @@ before_test:
68
66
& 'C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql' -e 'CREATE DATABASE nhibernate CHARACTER SET utf8 COLLATE utf8_general_ci;' --user=root
69
67
}
70
68
'Odbc' { Start-Service 'MSSQL$SQL2017' }
71
- 'PostgreSQL' {
72
- # Enable prepared transactions
73
- Add-Content -Path 'C:\Program Files\PostgreSQL\10\data\postgresql.conf' -Value "`r`nmax_prepared_transactions = 100"
74
- Start-Service 'postgresql-x64-10'
75
- }
76
69
'SqlServer2008' { Start-Service 'MSSQL$SQL2017' }
77
70
'SqlServer2008-MicrosoftDataSqlClientDriver' { Start-Service 'MSSQL$SQL2017' }
78
71
'SqlServer2012' { Start-Service 'MSSQL$SQL2017' }
You can’t perform that action at this time.
0 commit comments