Skip to content

Commit 1571e78

Browse files
committed
Run tests in parallel
1 parent c5aac19 commit 1571e78

File tree

1 file changed

+97
-15
lines changed

1 file changed

+97
-15
lines changed

.github/workflows/dotnet.yml

Lines changed: 97 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
build:
11-
10+
Unit-Tests:
1211
runs-on: ubuntu-latest
13-
1412
steps:
1513
- uses: actions/checkout@v2
1614
- name: Setup .NET
@@ -25,15 +23,99 @@ jobs:
2523
run: dotnet build --no-restore
2624
- name: Unit Tests
2725
run: dotnet test test/WorkflowCore.UnitTests --no-build --verbosity normal -p:ParallelizeTestCollections=false
28-
- name: Integration Tests
29-
run: dotnet test test/WorkflowCore.IntegrationTests --no-build --verbosity normal -p:ParallelizeTestCollections=false
30-
- name: MongoDB Tests
31-
run: dotnet test test/WorkflowCore.Tests.MongoDB --no-build --verbosity normal -p:ParallelizeTestCollections=false
32-
- name: PostgreSQL Tests
33-
run: dotnet test test/WorkflowCore.Tests.PostgreSQL --no-build --verbosity normal -p:ParallelizeTestCollections=false
34-
- name: Redis Tests
35-
run: dotnet test test/WorkflowCore.Tests.Redis --no-build --verbosity normal -p:ParallelizeTestCollections=false
36-
- name: SQL Server Tests
37-
run: dotnet test test/WorkflowCore.Tests.SqlServer --no-build --verbosity normal -p:ParallelizeTestCollections=false
38-
- name: Elasticsearch Tests
39-
run: dotnet test test/WorkflowCore.Tests.Elasticsearch --no-build --verbosity normal -p:ParallelizeTestCollections=false
26+
Integration-Tests:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- name: Setup .NET
31+
uses: actions/setup-dotnet@v1
32+
with:
33+
dotnet-version: |
34+
3.1.x
35+
6.0.x
36+
- name: Restore dependencies
37+
run: dotnet restore
38+
- name: Build
39+
run: dotnet build --no-restore
40+
- name: Integration Tests
41+
run: dotnet test test/WorkflowCore.IntegrationTests --no-build --verbosity normal -p:ParallelizeTestCollections=false
42+
MongoDB-Tests:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v2
46+
- name: Setup .NET
47+
uses: actions/setup-dotnet@v1
48+
with:
49+
dotnet-version: |
50+
3.1.x
51+
6.0.x
52+
- name: Restore dependencies
53+
run: dotnet restore
54+
- name: Build
55+
run: dotnet build --no-restore
56+
- name: MongoDB Tests
57+
run: dotnet test test/WorkflowCore.Tests.MongoDB --no-build --verbosity normal -p:ParallelizeTestCollections=false
58+
PostgreSQL-Tests:
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions/checkout@v2
62+
- name: Setup .NET
63+
uses: actions/setup-dotnet@v1
64+
with:
65+
dotnet-version: |
66+
3.1.x
67+
6.0.x
68+
- name: Restore dependencies
69+
run: dotnet restore
70+
- name: Build
71+
run: dotnet build --no-restore
72+
- name: PostgreSQL Tests
73+
run: dotnet test test/WorkflowCore.Tests.PostgreSQL --no-build --verbosity normal -p:ParallelizeTestCollections=false
74+
Redis-Tests:
75+
runs-on: ubuntu-latest
76+
steps:
77+
- uses: actions/checkout@v2
78+
- name: Setup .NET
79+
uses: actions/setup-dotnet@v1
80+
with:
81+
dotnet-version: |
82+
3.1.x
83+
6.0.x
84+
- name: Restore dependencies
85+
run: dotnet restore
86+
- name: Build
87+
run: dotnet build --no-restore
88+
- name: Redis Tests
89+
run: dotnet test test/WorkflowCore.Tests.Redis --no-build --verbosity normal -p:ParallelizeTestCollections=false
90+
SQLServer-Tests:
91+
runs-on: ubuntu-latest
92+
steps:
93+
- uses: actions/checkout@v2
94+
- name: Setup .NET
95+
uses: actions/setup-dotnet@v1
96+
with:
97+
dotnet-version: |
98+
3.1.x
99+
6.0.x
100+
- name: Restore dependencies
101+
run: dotnet restore
102+
- name: Build
103+
run: dotnet build --no-restore
104+
- name: SQL Server Tests
105+
run: dotnet test test/WorkflowCore.Tests.SqlServer --no-build --verbosity normal -p:ParallelizeTestCollections=false
106+
Elasticsearch-Tests:
107+
runs-on: ubuntu-latest
108+
steps:
109+
- uses: actions/checkout@v2
110+
- name: Setup .NET
111+
uses: actions/setup-dotnet@v1
112+
with:
113+
dotnet-version: |
114+
3.1.x
115+
6.0.x
116+
- name: Restore dependencies
117+
run: dotnet restore
118+
- name: Build
119+
run: dotnet build --no-restore
120+
- name: Elasticsearch Tests
121+
run: dotnet test test/WorkflowCore.Tests.Elasticsearch --no-build --verbosity normal -p:ParallelizeTestCollections=false

0 commit comments

Comments
 (0)