Skip to content

Commit 746e01e

Browse files
committed
Добавлен CI конвейер для тестов
1 parent 659a824 commit 746e01e

File tree

1 file changed

+13
-25
lines changed

1 file changed

+13
-25
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI - eShopOnWeb
1+
name: .NET CI
22

33
on:
44
push:
@@ -11,31 +11,19 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- name: Checkout source
15-
uses: actions/checkout@v3
14+
- name: Checkout code
15+
uses: actions/checkout@v3
1616

17-
- name: Setup .NET
18-
uses: actions/setup-dotnet@v3
19-
with:
20-
dotnet-version: 8.0.x
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v3
19+
with:
20+
dotnet-version: 8.0.x
2121

22-
- name: Restore dependencies
23-
run: dotnet restore
22+
- name: Restore dependencies
23+
run: dotnet restore
2424

25-
- name: Build solution
26-
run: dotnet build --no-restore --configuration Release
25+
- name: Build
26+
run: dotnet build --no-restore --configuration Release
2727

28-
- name: Run Unit Tests
29-
run: dotnet test tests/UnitTests/UnitTests.csproj --no-build --configuration Release --logger trx
30-
31-
- name: Run Public API Integration Tests
32-
run: dotnet test tests/PublicApiIntegrationTests/PublicApiIntegrationTests.csproj --no-build --configuration Release --logger trx
33-
34-
- name: Run Functional Tests (UI)
35-
run: dotnet test tests/FunctionalTests/FunctionalTests.csproj --no-build --configuration Release --logger trx
36-
37-
- name: Upload Test Results
38-
uses: actions/upload-artifact@v3
39-
with:
40-
name: TestResults
41-
path: '**/TestResults/*.trx'
28+
- name: Run tests
29+
run: dotnet test --no-build --configuration Release --verbosity normal

0 commit comments

Comments
 (0)