Skip to content

Commit fbbc6f6

Browse files
committed
test-postgres.yaml
1 parent bf08f9a commit fbbc6f6

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/test-postgres.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+

0 commit comments

Comments
 (0)