Skip to content

Commit 2bf5076

Browse files
committed
split CI to different jobs
1 parent ef60499 commit 2bf5076

File tree

1 file changed

+60
-5
lines changed

1 file changed

+60
-5
lines changed

.github/workflows/ci.yml

Lines changed: 60 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,24 +205,79 @@ jobs:
205205
./buildExternalPackages.ps1
206206
cd PackagesForTests
207207
nuget install packages.config
208+
- name: Upload Connector Tests
209+
uses: actions/upload-artifact@v4
210+
with:
211+
name: ConnectorTests
212+
if-no-files-found: error
213+
path: Tests/Connector/Reqnroll.VisualStudio.ReqnrollConnector.Tests/bin/
214+
- name: Upload Specs Tests
215+
uses: actions/upload-artifact@v4
216+
with:
217+
name: SpecsTests
218+
if-no-files-found: error
219+
path: Tests/Reqnroll.VisualStudio.Specs/bin/
220+
221+
connector-tests:
222+
runs-on: windows-latest
223+
needs: build
224+
225+
steps:
226+
- uses: actions/checkout@v4
227+
- name: Setup .NET
228+
uses: actions/setup-dotnet@v4
229+
with:
230+
dotnet-version: 10.0.x
231+
- name: Add MsBuild to PATH
232+
uses: microsoft/setup-msbuild@v1.3
233+
- name: Download Connector Tests
234+
uses: actions/download-artifact@v4
235+
with:
236+
name: ConnectorTests
237+
path: Tests/Connector/Reqnroll.VisualStudio.ReqnrollConnector.Tests/bin/
208238
- name: Connector Tests
209-
run: dotnet test ./Tests/Connector/Reqnroll.VisualStudio.ReqnrollConnector.Tests/Reqnroll.VisualStudio.ReqnrollConnector.Tests.csproj ${{ steps.build_params.outputs.test_params }}
239+
run: dotnet test ./Tests/Connector/Reqnroll.VisualStudio.ReqnrollConnector.Tests/bin/${{ needs.build.outputs.product_configuration }}/*/Reqnroll.VisualStudio.ReqnrollConnector.Tests.dll ${{ needs.build.outputs.test_params }}
240+
- name: Upload Test Result TRX Files
241+
uses: actions/upload-artifact@v4
242+
if: always()
243+
with:
244+
name: connector-tests-trx-v${{ needs.build.outputs.product_full_version }}
245+
if-no-files-found: error
246+
path: "**/*.trx"
247+
248+
specs-tests:
249+
runs-on: windows-latest
250+
needs: build
251+
252+
steps:
253+
- uses: actions/checkout@v4
254+
- name: Setup .NET
255+
uses: actions/setup-dotnet@v4
256+
with:
257+
dotnet-version: 10.0.x
258+
- name: Add MsBuild to PATH
259+
uses: microsoft/setup-msbuild@v1.3
260+
- name: Download Specs Tests
261+
uses: actions/download-artifact@v4
262+
with:
263+
name: SpecsTests
264+
path: Tests/Reqnroll.VisualStudio.Specs/bin/
210265
- name: Specs Tests
211266
run: >
212-
dotnet test ./Tests/Reqnroll.VisualStudio.Specs/Reqnroll.VisualStudio.Specs.csproj
267+
dotnet test ./Tests/Reqnroll.VisualStudio.Specs/bin/${{ needs.build.outputs.product_configuration }}/*/Reqnroll.VisualStudio.Specs.dll
213268
--filter "Category!=quarantine"
214-
${{ steps.build_params.outputs.test_params }}
269+
${{ needs.build.outputs.test_params }}
215270
- name: Upload Test Result TRX Files
216271
uses: actions/upload-artifact@v4
217272
if: always()
218273
with:
219-
name: build-trx-v${{ steps.versions.outputs.product_full_version }}
274+
name: specs-tests-trx-v${{ needs.build.outputs.product_full_version }}
220275
if-no-files-found: error
221276
path: "**/*.trx"
222277

223278
release:
224279
runs-on: windows-latest
225-
needs: [build]
280+
needs: [build, connector-tests, specs-tests]
226281
environment: production_environment
227282
if: github.ref == 'refs/heads/main' && needs.build.outputs.deploy_packages == 'true'
228283
permissions:

0 commit comments

Comments
 (0)