forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
152 lines (134 loc) · 5.44 KB
/
integration-ormlite.yml
File metadata and controls
152 lines (134 loc) · 5.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
name: Integration Tests OrmLite
on: workflow_dispatch
jobs:
integration-ormlite:
runs-on: ubuntu-latest
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: test
POSTGRES_DB: test
ports:
- 48303:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
sqlserver:
image: mcr.microsoft.com/mssql/server:2017-latest
env:
ACCEPT_EULA: Y
SA_PASSWORD: Test!tesT
MSSQL_PID: Developer
ports:
- 48501:1433
mysql:
image: mysql:8.0.28
env:
MYSQL_ROOT_PASSWORD: Test!tesT
MYSQL_DATABASE: test
ports:
- 48205:3306
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.100'
- name: Build
working-directory: ServiceStack.OrmLite/build
run: dotnet build ./build.proj
- name: Env setup
run: |
echo "SERVICESTACK_LICENSE=${{ secrets.SERVICESTACK_LICENSE }}" >> $GITHUB_ENV
- name: Test Sqlite
working-directory: ServiceStack.OrmLite/tests
env:
ORMLITE_DIALECT: Sqlite
run: dotnet test --framework net8.0 ./ServiceStack.OrmLite.Tests/ServiceStack.OrmLite.Tests.csproj --logger 'trx;LogFileName=results.trx'
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: OrmLite Sqlite Tests
only-summary: 'true'
path: ./ServiceStack.OrmLite/tests/ServiceStack.OrmLite.Tests/TestResults/results.trx
reporter: dotnet-trx
- name: Tests Postgres Setup
working-directory: ServiceStack.OrmLite/tests
if: success() || failure()
env:
ORMLITE_DIALECT: PostgreSql11
PGSQL_CONNECTION: Server=localhost;Port=48303;User Id=postgres;Password=test;Database=test;Pooling=true;MinPoolSize=0;MaxPoolSize=200
run: dotnet test --framework net8.0 ./ServiceStack.OrmLite.Tests.Setup/ServiceStack.OrmLite.Tests.Setup.csproj
- name: Test Postgres OrmLite
working-directory: ServiceStack.OrmLite/tests
if: success() || failure()
env:
ORMLITE_DIALECT: PostgreSql11
PGSQL_CONNECTION: Server=localhost;Port=48303;User Id=postgres;Password=test;Database=test;Pooling=true;MinPoolSize=0;MaxPoolSize=200
run: dotnet test --framework net8.0 ./ServiceStack.OrmLite.Tests/ServiceStack.OrmLite.Tests.csproj --logger 'trx;LogFileName=results.trx'
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: OrmLite PG Tests
only-summary: 'true'
path: ./ServiceStack.OrmLite/tests/ServiceStack.OrmLite.Tests/TestResults/results.trx
reporter: dotnet-trx
- name: Tests SQL Server Setup
working-directory: ServiceStack.OrmLite/tests
if: success() || failure()
env:
ORMLITE_DIALECT: SqlServer2017
MSSQL_CONNECTION: Server=localhost,48501;Database=master;User Id=sa;Password=Test!tesT;MultipleActiveResultSets=True;
run: dotnet test --framework net8.0 ./ServiceStack.OrmLite.Tests.Setup/ServiceStack.OrmLite.Tests.Setup.csproj
- name: Test SQL Server OrmLite
working-directory: ServiceStack.OrmLite/tests
if: success() || failure()
env:
ORMLITE_DIALECT: SqlServer2017
MSSQL_CONNECTION: Server=localhost,48501;Database=master;User Id=sa;Password=Test!tesT;MultipleActiveResultSets=True;
run: dotnet test --framework net8.0 ./ServiceStack.OrmLite.Tests/ServiceStack.OrmLite.Tests.csproj --logger 'trx;LogFileName=results.trx'
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: OrmLite MS SQL Tests
only-summary: 'true'
path: ./ServiceStack.OrmLite/tests/ServiceStack.OrmLite.Tests/TestResults/results.trx
reporter: dotnet-trx
- name: Tests MySql Setup
working-directory: ServiceStack.OrmLite/tests
if: success() || failure()
env:
ORMLITE_DIALECT: MySql
MYSQL_CONNECTION: Server=localhost;Port=48205;Database=test;UID=root;Password=Test!tesT
run: dotnet test --framework net8.0 ./ServiceStack.OrmLite.Tests.Setup/ServiceStack.OrmLite.Tests.Setup.csproj
- name: Test MySql OrmLite
working-directory: ServiceStack.OrmLite/tests
if: success() || failure()
env:
ORMLITE_DIALECT: MySql
MYSQL_CONNECTION: Server=localhost;Port=48205;Database=test;UID=root;Password=Test!tesT
run: dotnet test --framework net8.0 ./ServiceStack.OrmLite.Tests/ServiceStack.OrmLite.Tests.csproj --logger 'trx;LogFileName=results.trx'
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: OrmLite MySql Tests
only-summary: 'true'
path: ./ServiceStack.OrmLite/tests/ServiceStack.OrmLite.Tests/TestResults/results.trx
reporter: dotnet-trx