44 workflow_dispatch :
55
66env :
7- ConnectionStrings__sqldb : ' Data Source=localhost; Initial Catalog=BoilerplateTestDb;Application Name=Boilerplate;TrustServerCertificate=True;User Id=sa;Password=P@ssw0rdP@ssw0rd;'
87 DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION : true
98
109jobs :
3534 dotnet-version : |
3635 8.0.x
3736
38- - uses : actions/setup-node@v4
37+ - uses : actions/setup-node@v6
3938 with :
4039 node-version : 23
4140
@@ -51,40 +50,32 @@ jobs:
5150 dotnet workload install maui-tizen maui-android wasm-tools wasm-tools-net9 wasm-tools-net8
5251 ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT "platform-tools"
5352
54- - name : Run tests usign Sqlite
55- id : run-test-sqlite
53+ - name : Run tests using PostgreSQL
54+ id : run-test-postgresql
5655 run : |
57- dotnet new bit-bp --name SimpleTest --database Sqlite
58- cd SimpleTest /src/Server/SimpleTest .Server.Api/
56+ dotnet new bit-bp --name TestPostgreSQL --database PostgreSQL --module Sales --signalR --aspire
57+ cd TestPostgreSQL /src/Server/TestPostgreSQL .Server.Api/
5958 dotnet build
6059 dotnet tool restore
6160 dotnet ef migrations add Initial --verbose
62- dotnet ef database update
6361 cd ../../Tests
6462 dotnet build
6563 pwsh bin/Debug/net10.0/playwright.ps1 install --with-deps
6664 dotnet test
6765
6866 - name : Upload Tests Artifact
696770- if : ${{ !env.ACT && failure() && steps.run-test-sqlite .conclusion == 'failure' }}
68+ if : ${{ !env.ACT && failure() && steps.run-test-postgresql .conclusion == 'failure' }}
7169 with :
7270 name : tests-artifact
73- path : ./SimpleTest /src/Tests/TestResults
71+ path : ./TestPostgreSQL /src/Tests/TestResults
7472 retention-days : 14
7573
76- - name : Install sql server
77- uses :
potatoqualitee/[email protected] 78- with :
79- install : sqlengine
80- sa-password : P@ssw0rdP@ssw0rd
81- show-log : true
82-
83- - name : Run tests usign SQL Server
84- id : run-test-sqlserver
74+ - name : Run tests using Sqlite
75+ id : run-test-sqlite
8576 run : |
86- dotnet new bit-bp --name TestSqlServer --database SqlServer --module Sales --signalR
87- cd TestSqlServer /src/Server/TestSqlServer .Server.Api/
77+ dotnet new bit-bp --name SimpleTest --database Sqlite --aspire false
78+ cd SimpleTest /src/Server/SimpleTest .Server.Api/
8879 dotnet build
8980 dotnet tool restore
9081 dotnet ef migrations add Initial --verbose
@@ -96,24 +87,24 @@ jobs:
9687
9788 - name : Upload Tests Artifact
988999- if : ${{ !env.ACT && failure() && steps.run-test-sqlserver .conclusion == 'failure' }}
90+ if : ${{ !env.ACT && failure() && steps.run-test-sqlite .conclusion == 'failure' }}
10091 with :
10192 name : tests-artifact
102- path : ./TestSqlServer /src/Tests/TestResults
93+ path : ./SimpleTest /src/Tests/TestResults
10394 retention-days : 14
10495
10596 - name : Cleanup test projects to free disk space
10697 run : |
10798 rm -rf SimpleTest
108- rm -rf TestSqlServer
99+ rm -rf TestPostgreSQL
109100
110- - name : Build PostgreSQL and Other database options
101+ - name : Build SQLServer and Other database options
111102 run : |
112- dotnet new bit-bp --name TestPostgreSQL --database PostgreSQL --module Sales --signalR
113- cd TestPostgreSQL /src/Server/TestPostgreSQL .Server.Web/
103+ dotnet new bit-bp --name SQLServer --database SQLServer --module Sales --signalR
104+ cd SQLServer /src/Server/SQLServer .Server.Web/
114105 dotnet build
115106 cd ../../../../
116- rm -r "TestPostgreSQL "
107+ rm -r "SQLServer "
117108 dotnet new bit-bp --name TestOther --database Other --sample --sentry
118109 cd TestOther/src/Server/TestOther.Server.Web/
119110 dotnet build
0 commit comments