55
66env :
77 ConnectionStrings__SqlServerConnectionString : ' Data Source=localhost; Initial Catalog=BoilerplateTestDb;Application Name=Boilerplate;TrustServerCertificate=True;User Id=sa;Password=P@ssw0rdP@ssw0rd;'
8- SIMPLE_TEST_FILTER : " ClassName!~PageTests"
9- BLAZOR_SERVER_TEST_FILTER : " ClassName~PageTests.BlazorServer"
10- BLAZOR_WASM_TEST_FILTER : " ClassName~PageTests.BlazorWebAssembly"
11- MULTILINGUAL_DISABLED_TEST_FILTER : " ClassName!~LocalizationTests|TestCategory=MultilingualDisabled"
128
139jobs :
1410
5551 sa-password : P@ssw0rdP@ssw0rd
5652 show-log : true
5753
58- - name : Simple tests (no --advancedTests)
59- id : simple-test
60- continue-on-error : true
54+ - name : Run tests usign Sqlite
55+ id : run-test-sqlite
6156 run : |
6257 dotnet new bit-bp --name SimpleTest --database Sqlite
6358 cd SimpleTest/src/Server/SimpleTest.Server.Api/
@@ -71,74 +66,34 @@ jobs:
7166
7267 - name : Upload Tests Artifact
7368 uses : actions/upload-artifact@v4.4.1
74- if : ${{ !env.ACT && failure() && steps.simple -test.conclusion == 'failure' }}
69+ if : ${{ !env.ACT && failure() && steps.run -test-sqlite .conclusion == 'failure' }}
7570 with :
7671 name : tests-artifact
7772 path : ./SimpleTest/src/Tests/TestResults
7873 retention-days : 14
7974
80- - name : Test Sqlite database option
81- id : sqlite -test
75+ - name : Run tests usign SQL Server
76+ id : run -test-sqlserver
8277 run : |
83- dotnet new bit-bp --name TestSqlite --database Sqlite --advancedTests
84- cd TestSqlite /src/Server/TestSqlite .Server.Api/
78+ dotnet new bit-bp --name TestSqlServer --database SqlServer
79+ cd TestSqlServer /src/Server/TestSqlServer .Server.Api/
8580 dotnet tool restore
8681 dotnet ef migrations add InitialMigration --verbose
8782 dotnet ef database update
8883 cd ../../Tests
8984 dotnet build
9085 pwsh bin/Debug/net9.0/playwright.ps1 install --with-deps
91- # dotnet test --logger GitHubActions --filter "${{ env.BLAZOR_SERVER_TEST_FILTER }}"
92- # dotnet test --logger GitHubActions --filter "${{ env.BLAZOR_WASM_TEST_FILTER }}" -- MSTest.Parallelize.Workers=1
93-
94- - name : Upload Tests Artifact
95- uses : actions/upload-artifact@v4.4.1
96- if : ${{ !env.ACT && failure() && steps.sqlite-test.conclusion == 'failure' }}
97- with :
98- name : tests-artifact
99- path : ./TestSqlite/src/Tests/TestResults
100- retention-days : 14
101-
102- - name : Test SqlServer database option
103- id : sqlserver-test
104- run : |
105- dotnet new bit-bp --name TestSqlServer --database SqlServer --advancedTests
106- cd TestSqlServer/src/Server/TestSqlServer.Server.Api/
107- dotnet tool restore
108- dotnet ef migrations add InitialMigration --verbose
109- dotnet ef database update
110- cd ../../Tests
111- # dotnet test --logger GitHubActions --filter "${{ env.BLAZOR_SERVER_TEST_FILTER }}"
112- # dotnet test --logger GitHubActions --filter "${{ env.BLAZOR_WASM_TEST_FILTER }}" -- MSTest.Parallelize.Workers=1
86+ dotnet test --logger GitHubActions --filter "${{ env.SIMPLE_TEST_FILTER }}"
11387
11488 - name : Upload Tests Artifact
11589 uses : actions/upload-artifact@v4.4.1
116- if : ${{ !env.ACT && failure() && steps.sqlserver -test.conclusion == 'failure' }}
90+ if : ${{ !env.ACT && failure() && steps.run -test-sqlserver .conclusion == 'failure' }}
11791 with :
11892 name : tests-artifact
11993 path : ./TestSqlServer/src/Tests/TestResults
12094 retention-days : 14
12195
122- - name : Test Multilingual disabled option
123- id : multilingual-disabled-test
124- run : |
125- dotnet new bit-bp --name MultilingualDisabled --database Sqlite --advancedTests
126- cd MultilingualDisabled/src/Server/MultilingualDisabled.Server.Api/
127- dotnet tool restore
128- dotnet ef migrations add InitialMigration --verbose
129- dotnet ef database update
130- cd ../../Tests
131- # dotnet test -p:InvariantGlobalization=true --logger GitHubActions --filter "${{ env.MULTILINGUAL_DISABLED_TEST_FILTER }}" -- MSTest.Parallelize.Workers=1
132-
133- - name : Upload Tests Artifact
134- uses : actions/upload-artifact@v4.4.1
135- if : ${{ !env.ACT && failure() && steps.multilingual-disabled-test.conclusion == 'failure' }}
136- with :
137- name : tests-artifact
138- path : ./MultilingualDisabled/src/Tests/TestResults
139- retention-days : 14
140-
141- - name : Test PostgreSQL, MySql, Other database options
96+ - name : Build PostgreSQL, MySql, Other database options
14297 run : |
14398 dotnet new bit-bp --name TestPostgreSQL --database PostgreSQL --module Sales --signalR
14499 cd TestPostgreSQL/src/Server/TestPostgreSQL.Server.Web/
@@ -156,7 +111,7 @@ jobs:
156111 cd ../../../../
157112 rm -r "TestOther"
158113
159- - name : Test file storage options
114+ - name : Build file storage options
160115 run : |
161116 dotnet new bit-bp --name TestLocal --filesStorage Local --appInsights
162117 cd TestLocal/src/Server/TestLocal.Server.Web/
@@ -169,7 +124,7 @@ jobs:
169124 cd ../../../../
170125 rm -r "TestAzureBlobStorage"
171126
172- - name : Test backend setup options
127+ - name : Build backend setup options
173128 run : |
174129 dotnet new bit-bp --name TestStandalone --api Standalone
175130 cd TestStandalone/src/Server/TestStandalone.Server.Api/
@@ -185,13 +140,13 @@ jobs:
185140 cd ../../../../
186141 rm -r "TestIntegrated"
187142
188- - name : Test sample configuration 1
143+ - name : Build sample configuration 1
189144 run : |
190145 dotnet new bit-bp --name TestProject --database SqlServer --filesStorage AzureBlobStorage --api Integrated --captcha reCaptcha --pipeline Azure --module Admin --offlineDb --appInsights --sentry --signalR --notification --cloudflare --ads --aspire
191146 dotnet build TestProject/TestProject.sln -p:InvariantGlobalization=false -p:Environment=Staging
192147 rm -r "TestProject"
193148
194- - name : Test sample configuration 2
149+ - name : Build sample configuration 2
195150 run : |
196151 dotnet new bit-bp --name TestProject2 --database Other --filesStorage S3 --api Standalone --captcha None --pipeline None --module None --offlineDb false --appInsights false --sentry false --signalR false --notification false --cloudflare false --ads false --aspire false
197152 dotnet build TestProject2/TestProject2.sln -p:InvariantGlobalization=true -p:Environment=Development
0 commit comments