From 70fbfc0f971f5bb5dc4973d2963ef8e76495ca0a Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Wed, 18 Oct 2023 19:06:11 +0330 Subject: [PATCH] fix actions --- .github/workflows/dotnet-format-action.yml | 6 +++--- .github/workflows/dotnet-linux.yml | 8 ++++---- .github/workflows/dotnet-macos.yml | 8 ++++---- .github/workflows/dotnet-windows.yml | 8 ++++---- .github/workflows/nuget-push-public.yml | 8 ++++---- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/dotnet-format-action.yml b/.github/workflows/dotnet-format-action.yml index 5e1ed7b..4605157 100644 --- a/.github/workflows/dotnet-format-action.yml +++ b/.github/workflows/dotnet-format-action.yml @@ -21,11 +21,11 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} action: "fix" - workspace: "./src/CSharp/EasyMicroservices.Logger.sln" + workspace: "./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln" - name: Test run: | - dotnet test ./src/CSharp/EasyMicroservices.Logger.sln -f net6.0 - dotnet test ./src/CSharp/EasyMicroservices.Logger.sln -f net7.0 + dotnet test ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln -f net6.0 + dotnet test ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.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.yml b/.github/workflows/dotnet-linux.yml index e6494ac..cbf599c 100644 --- a/.github/workflows/dotnet-linux.yml +++ b/.github/workflows/dotnet-linux.yml @@ -20,10 +20,10 @@ jobs: env: NUGET_CERT_REVOCATION_MODE: offline - name: Restore dependencies - run: dotnet restore ./src/CSharp/EasyMicroservices.Logger.sln + run: dotnet restore ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln - name: Build - run: dotnet build ./src/CSharp/EasyMicroservices.Logger.sln --no-restore + run: dotnet build ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --no-restore - name: Test run: | - dotnet test ./src/CSharp/EasyMicroservices.Logger.sln --no-build --verbosity normal -f net6.0 - dotnet test ./src/CSharp/EasyMicroservices.Logger.sln --no-build --verbosity normal -f net7.0 + dotnet test ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --no-build --verbosity normal -f net6.0 + dotnet test ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --no-build --verbosity normal -f net7.0 diff --git a/.github/workflows/dotnet-macos.yml b/.github/workflows/dotnet-macos.yml index 14aa3cd..d92c3c9 100644 --- a/.github/workflows/dotnet-macos.yml +++ b/.github/workflows/dotnet-macos.yml @@ -20,10 +20,10 @@ jobs: env: NUGET_CERT_REVOCATION_MODE: offline - name: Restore dependencies - run: dotnet restore ./src/CSharp/EasyMicroservices.Logger.sln + run: dotnet restore ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln - name: Build - run: dotnet build ./src/CSharp/EasyMicroservices.Logger.sln --no-restore + run: dotnet build ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --no-restore - name: Test run: | - dotnet test ./src/CSharp/EasyMicroservices.Logger.sln --no-build --verbosity normal -f net6.0 - dotnet test ./src/CSharp/EasyMicroservices.Logger.sln --no-build --verbosity normal -f net7.0 + dotnet test ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --no-build --verbosity normal -f net6.0 + dotnet test ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --no-build --verbosity normal -f net7.0 diff --git a/.github/workflows/dotnet-windows.yml b/.github/workflows/dotnet-windows.yml index 69d3874..bc6b510 100644 --- a/.github/workflows/dotnet-windows.yml +++ b/.github/workflows/dotnet-windows.yml @@ -20,10 +20,10 @@ jobs: env: NUGET_CERT_REVOCATION_MODE: offline - name: Restore dependencies - run: dotnet restore ./src/CSharp/EasyMicroservices.Logger.sln + run: dotnet restore ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln - name: Build - run: dotnet build ./src/CSharp/EasyMicroservices.Logger.sln --no-restore + run: dotnet build ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --no-restore - name: Test run: | - dotnet test ./src/CSharp/EasyMicroservices.Logger.sln --no-build --verbosity normal -f net6.0 - dotnet test ./src/CSharp/EasyMicroservices.Logger.sln --no-build --verbosity normal -f net7.0 + dotnet test ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --no-build --verbosity normal -f net6.0 + dotnet test ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --no-build --verbosity normal -f net7.0 diff --git a/.github/workflows/nuget-push-public.yml b/.github/workflows/nuget-push-public.yml index a300846..8f555f1 100644 --- a/.github/workflows/nuget-push-public.yml +++ b/.github/workflows/nuget-push-public.yml @@ -13,12 +13,12 @@ jobs: 6.0.x 7.0.x - name: Restore dependencies - run: dotnet restore ./src/CSharp/EasyMicroservices.Logger.sln + run: dotnet restore ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln - name: Build - run: dotnet build ./src/CSharp/EasyMicroservices.Logger.sln --no-restore + run: dotnet build ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --no-restore - name: Test - run: dotnet test ./src/CSharp/EasyMicroservices.Logger.sln --no-build --verbosity normal + run: dotnet test ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --no-build --verbosity normal - name: Create the package - run: dotnet pack ./src/CSharp/EasyMicroservices.Logger.sln --output nupkgs + run: dotnet pack ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --output nupkgs - name: Publish the package to NuGet.org run: dotnet nuget push nupkgs/*.nupkg -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate \ No newline at end of file