Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move github actions #16

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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