File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Tests with PostgreSQL
2
+ on :
3
+ pull_request :
4
+ branches : [ master-servicetitan ]
5
+ env :
6
+ DO_CONFIG_FILE : " /tmp/do-test.cfg"
7
+ DO_STORAGE : " pgsql160"
8
+ DO_TargetFrameworks : net8.0
9
+ jobs :
10
+ test-with-postgresql :
11
+ name : SQL tests
12
+ runs-on : ubuntu-latest
13
+ timeout-minutes : 120
14
+ steps :
15
+ - uses : ikalnytskyi/action-setup-postgres@v6
16
+ - name : Setup .NET
17
+ uses : actions/setup-dotnet@v3
18
+ with : { dotnet-version: 8 }
19
+ - name : Build
20
+ run : dotnet build -v q Orm.sln
21
+ - name : Init Test DB
22
+ run : |
23
+ echo 127.0.0.1 pghost >>/etc/hosts
24
+ createuser dotest
25
+ createdb --owner dotest dotest
26
+ psql -c "ALTER USER dotest WITH PASSWORD 'dotest' SUPERUSER"
27
+ - name : Create DO Tests Config file
28
+ run : echo default=postgresql://dotest:dotest@localhost/dotest >$DO_CONFIG_FILE
29
+ - name : Tests
30
+ run : dotnet test --no-build -v n Orm/Xtensive.Orm.Tests/Xtensive.Orm.Tests.csproj --filter 'TestCategory!=Mute'
31
+
32
+
You can’t perform that action at this time.
0 commit comments