File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : .NET Core
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ db :
7
+ strategy :
8
+ fail-fast : false
9
+ matrix :
10
+ i : [1,2,3,4,5]
11
+ DB : [Firebird]
12
+ CONNECTION_STRING : ["DataSource=localhost;Database=nhibernate;User=SYSDBA;Password=nhibernate;charset=utf8;"]
13
+
14
+ runs-on : ubuntu-latest
15
+ continue-on-error : ${{matrix.ALLOW_FAILURE == true}}
16
+ env :
17
+ LANG : en-US.UTF-8 # default POSIX locale doesn't support ignore case comparisons
18
+ name : ${{matrix.DB}} + ${{matrix.i}}
19
+
20
+ steps :
21
+ - name : Set up SqlServer
22
+ if : matrix.DB == 'SqlServer2008'
23
+ run : |
24
+ docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=P@ssw0rd" -e "MSSQL_PID=Express" -p 1433:1433 -d --name sqlexpress microsoft/mssql-server-linux:latest;
25
+
26
+ - name : Set up MySQL
27
+ if : matrix.DB == 'MySQL'
28
+ run : |
29
+ sudo service mysql stop
30
+ docker run --name mysql -e MYSQL_ROOT_PASSWORD=nhibernate -e MYSQL_USER=nhibernate -e MYSQL_PASSWORD=nhibernate -e MYSQL_DATABASE=nhibernate -p 3306:3306 --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 -d mysql:5.7 mysqld --lower_case_table_names=1
31
+
32
+ - name : Set up PostgreSQL
33
+ if : matrix.DB == 'PostgreSQL'
34
+ run : |
35
+ docker run -d -e POSTGRES_USER=nhibernate -e POSTGRES_PASSWORD=nhibernate -e POSTGRES_DB=nhibernate -p 5432:5432 postgres
36
+
37
+ - name : Set up Firebird
38
+ if : matrix.DB == 'Firebird'
39
+ run : |
40
+ docker run --name firebird -e EnableWireCrypt=true -e FIREBIRD_USER=nhibernate -e FIREBIRD_PASSWORD=nhibernate -e ISC_PASSWORD=nhibernate -e FIREBIRD_DATABASE=nhibernate -p 3050:3050 -d jacobalberty/firebird
41
+
42
+ - uses : actions/checkout@v2
43
+ - name : Setup .NET
44
+
45
+ with :
46
+ dotnet-version : 2.1.x
47
+
48
+ - name : Build and Test
49
+ run : |
50
+ pwsh -noprofile -command "& ./build.ps1 -TaskList Set-Configuration,Test -properties @{'Database' = '${{matrix.DB}}';'ConnectionString'='${{matrix.CONNECTION_STRING}}'}"
You can’t perform that action at this time.
0 commit comments