From ecc96bd948b7751df0a9706c23c9be967713ab0e Mon Sep 17 00:00:00 2001 From: Elyas Amini Date: Sat, 2 Dec 2023 19:16:33 +0330 Subject: [PATCH] Refactor Tests --- .github/workflows/dotnet-format-action.yml | 9 +-------- .github/workflows/dotnet-linux-client.yml | 9 +-------- .github/workflows/dotnet-linux.yml | 9 +-------- .github/workflows/dotnet-macos-client.yml | 9 +-------- .github/workflows/dotnet-macos.yml | 9 +-------- .github/workflows/dotnet-windows-client.yml | 5 ----- .github/workflows/dotnet-windows.yml | 5 ----- .github/workflows/nuget-push-public-client.yml | 3 --- .github/workflows/nuget-push-public.yml | 3 --- 9 files changed, 5 insertions(+), 56 deletions(-) diff --git a/.github/workflows/dotnet-format-action.yml b/.github/workflows/dotnet-format-action.yml index ec7d174..b2aebc5 100644 --- a/.github/workflows/dotnet-format-action.yml +++ b/.github/workflows/dotnet-format-action.yml @@ -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/dotnet-format@v1.0.5 @@ -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/add-and-commit@v4.1.0 diff --git a/.github/workflows/dotnet-linux-client.yml b/.github/workflows/dotnet-linux-client.yml index 6f12f12..c3e5c77 100644 --- a/.github/workflows/dotnet-linux-client.yml +++ b/.github/workflows/dotnet-linux-client.yml @@ -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 diff --git a/.github/workflows/dotnet-linux.yml b/.github/workflows/dotnet-linux.yml index a460568..31a719d 100644 --- a/.github/workflows/dotnet-linux.yml +++ b/.github/workflows/dotnet-linux.yml @@ -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 diff --git a/.github/workflows/dotnet-macos-client.yml b/.github/workflows/dotnet-macos-client.yml index 6c33999..31db67c 100644 --- a/.github/workflows/dotnet-macos-client.yml +++ b/.github/workflows/dotnet-macos-client.yml @@ -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 diff --git a/.github/workflows/dotnet-macos.yml b/.github/workflows/dotnet-macos.yml index 357f4bc..1243cdc 100644 --- a/.github/workflows/dotnet-macos.yml +++ b/.github/workflows/dotnet-macos.yml @@ -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 diff --git a/.github/workflows/dotnet-windows-client.yml b/.github/workflows/dotnet-windows-client.yml index 3deafff..4e3800d 100644 --- a/.github/workflows/dotnet-windows-client.yml +++ b/.github/workflows/dotnet-windows-client.yml @@ -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 diff --git a/.github/workflows/dotnet-windows.yml b/.github/workflows/dotnet-windows.yml index b660b4e..0fa0ccb 100644 --- a/.github/workflows/dotnet-windows.yml +++ b/.github/workflows/dotnet-windows.yml @@ -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 diff --git a/.github/workflows/nuget-push-public-client.yml b/.github/workflows/nuget-push-public-client.yml index 528da46..ec08458 100644 --- a/.github/workflows/nuget-push-public-client.yml +++ b/.github/workflows/nuget-push-public-client.yml @@ -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 diff --git a/.github/workflows/nuget-push-public.yml b/.github/workflows/nuget-push-public.yml index 396faa5..39432b5 100644 --- a/.github/workflows/nuget-push-public.yml +++ b/.github/workflows/nuget-push-public.yml @@ -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