Skip to content

Commit

Permalink
move github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-YousefiTelori committed Dec 4, 2023
1 parent 2153f63 commit f7a077e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dotnet-format-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
action: "fix"
workspace: "./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln"
workspace: "./src/CSharp/EasyMicroservices.Logger.sln"
- name: Test
run: dotnet test ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln
run: dotnet test ./src/CSharp/EasyMicroservices.Logger.sln
- name: Test to generate Code Coverage Report
working-directory: ./src/CSharp/EasyMicroservices.Logger
working-directory: ./src/CSharp
run: |
dotnet build ./EasyMicroservices.Logger.sln
dotnet tool install --global coverlet.console
coverlet EasyMicroservices.Logger.Tests/bin/Debug/net6.0/EasyMicroservices.Logger.Tests.dll --target "dotnet" --targetargs "test EasyMicroservices.Logger.Tests/bin/Debug/net6.0/EasyMicroservices.Logger.Tests.dll --no-build" -f opencover
- name: OpenCover Badge Generator
uses: danpetitt/[email protected]
with:
path-to-opencover-xml: ./src/CSharp/EasyMicroservices.Logger/coverage.opencover.xml
path-to-badges: ./src/CSharp/EasyMicroservices.Logger
path-to-opencover-xml: ./src/CSharp/coverage.opencover.xml
path-to-badges: ./src/CSharp
minimum-coverage: 50
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Commit files
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/dotnet-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
env:
NUGET_CERT_REVOCATION_MODE: offline
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln
run: dotnet restore ./src/CSharp/EasyMicroservices.Logger.sln
- name: Build
run: dotnet build ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --no-restore
run: dotnet build ./src/CSharp/EasyMicroservices.Logger.sln --no-restore
- name: Test
run: |
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
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
8 changes: 4 additions & 4 deletions .github/workflows/dotnet-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
env:
NUGET_CERT_REVOCATION_MODE: offline
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln
run: dotnet restore ./src/CSharp/EasyMicroservices.Logger.sln
- name: Build
run: dotnet build ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --no-restore
run: dotnet build ./src/CSharp/EasyMicroservices.Logger.sln --no-restore
- name: Test
run: |
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
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
8 changes: 4 additions & 4 deletions .github/workflows/dotnet-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
env:
NUGET_CERT_REVOCATION_MODE: offline
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln
run: dotnet restore ./src/CSharp/EasyMicroservices.Logger.sln
- name: Build
run: dotnet build ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --no-restore
run: dotnet build ./src/CSharp/EasyMicroservices.Logger.sln --no-restore
- name: Test
run: |
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
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
8 changes: 4 additions & 4 deletions .github/workflows/nuget-push-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
6.0.x
7.0.x
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln
run: dotnet restore ./src/CSharp/EasyMicroservices.Logger.sln
- name: Build
run: dotnet build ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --no-restore
run: dotnet build ./src/CSharp/EasyMicroservices.Logger.sln --no-restore
- name: Test
run: dotnet test ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --no-build --verbosity normal
run: dotnet test ./src/CSharp/EasyMicroservices.Logger.sln --no-build --verbosity normal
- name: Create the package
run: dotnet pack ./src/CSharp/EasyMicroservices.Logger/EasyMicroservices.Logger.sln --output nupkgs
run: dotnet pack ./src/CSharp/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

0 comments on commit f7a077e

Please sign in to comment.