Skip to content

Commit

Permalink
Refactor Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Elyas-Amini committed Dec 2, 2023
1 parent b68fcb3 commit ecc96bd
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 56 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/dotnet-format-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
- name: Install Android
run: dotnet workload install android
- name: Run dotnet format
id: format
uses: jfversluis/[email protected]
Expand All @@ -28,9 +23,7 @@ jobs:
workspace: "./src/CSharp/EasyMicroservices.SupportsMicroservice.sln"
- name: Test
run: |
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.sln -f netcoreapp3.1
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.sln -f net6.0
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.sln -f net5.0
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.sln -f net7.0
- name: Commit files
if: steps.format.outputs.has-changes == 'true'
uses: EndBug/[email protected]
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/dotnet-linux-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,11 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
- name: Install Android
run: dotnet workload install android
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.SupportsMicroservice.Client.sln
- name: Build
run: dotnet build ./src/CSharp/EasyMicroservices.SupportsMicroservice.Client.sln --no-restore
- name: Test
run: |
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.Client.sln --no-build --verbosity normal -f netcoreapp3.1
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.Client.sln --no-build --verbosity normal -f net6.0
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.Client.sln --no-build --verbosity normal -f net5.0
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.Client.sln --no-build --verbosity normal -f net7.0
9 changes: 1 addition & 8 deletions .github/workflows/dotnet-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,11 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
- name: Install Android
run: dotnet workload install android
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.SupportsMicroservice.sln
- name: Build
run: dotnet build ./src/CSharp/EasyMicroservices.SupportsMicroservice.sln --no-restore
- name: Test
run: |
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.sln --no-build --verbosity normal -f netcoreapp3.1
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.sln --no-build --verbosity normal -f net6.0
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.sln --no-build --verbosity normal -f net5.0
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.sln --no-build --verbosity normal -f net7.0
9 changes: 1 addition & 8 deletions .github/workflows/dotnet-macos-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,11 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
- name: Install Android
run: dotnet workload install android
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.SupportsMicroservice.Client.sln
- name: Build
run: dotnet build ./src/CSharp/EasyMicroservices.SupportsMicroservice.Client.sln --no-restore
- name: Test
run: |
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.Client.sln --no-build --verbosity normal -f netcoreapp3.1
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.Client.sln --no-build --verbosity normal -f net6.0
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.Client.sln --no-build --verbosity normal -f net5.0
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.Client.sln --no-build --verbosity normal -f net7.0
9 changes: 1 addition & 8 deletions .github/workflows/dotnet-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,11 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
- name: Install Android
run: dotnet workload install android
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.SupportsMicroservice.sln
- name: Build
run: dotnet build ./src/CSharp/EasyMicroservices.SupportsMicroservice.sln --no-restore
- name: Test
run: |
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.sln --no-build --verbosity normal -f netcoreapp3.1
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.sln --no-build --verbosity normal -f net6.0
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.sln --no-build --verbosity normal -f net5.0
dotnet test ./src/CSharp/EasyMicroservices.SupportsMicroservice.sln --no-build --verbosity normal -f net7.0
5 changes: 0 additions & 5 deletions .github/workflows/dotnet-windows-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
- name: Install Android
run: dotnet workload install android
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.SupportsMicroservice.Client.sln
- name: Build
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/dotnet-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
- name: Install Android
run: dotnet workload install android
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.SupportsMicroservice.sln
- name: Build
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/nuget-push-public-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ jobs:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
env:
DOTNET_INSTALL_DIR: /usr/share/dotnet
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/nuget-push-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ jobs:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
env:
DOTNET_INSTALL_DIR: /usr/share/dotnet
Expand Down

0 comments on commit ecc96bd

Please sign in to comment.