Skip to content

Commit

Permalink
fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-YousefiTelori committed Dec 11, 2023
1 parent 25d31f2 commit f069b65
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dotnet-format-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
action: "fix"
workspace: "./src/CSharp/EasyMicroservices.Serialization.sln"
workspace: "./src/CSharp/EasyMicroservices.Serialization-net6.0.sln"
- name: Test
run: dotnet test ./src/CSharp/EasyMicroservices.Serialization.sln
run: dotnet test ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln
- name: Test to generate Code Coverage Report
working-directory: ./src/CSharp
run: |
dotnet build ./EasyMicroservices.Serialization.sln
dotnet build ./EasyMicroservices.Serialization-net6.0.sln
dotnet tool install --global coverlet.console
coverlet EasyMicroservices.Serialization.Tests/bin/Debug/net6.0/EasyMicroservices.Serialization.Tests.dll --target "dotnet" --targetargs "test EasyMicroservices.Serialization.Tests/bin/Debug/net6.0/EasyMicroservices.Serialization.Tests.dll --no-build" -f opencover
- name: OpenCover Badge Generator
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/dotnet-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,17 @@ jobs:
7.0.x
8.0.x
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.Serialization.sln
run: |
dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln
dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln
dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln
- name: Build
run: dotnet build ./src/CSharp/EasyMicroservices.Serialization.sln --no-restore
run: |
dotnet build ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-restore
dotnet build ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-restore
dotnet build ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln --no-restore
- name: Test
run: dotnet test ./src/CSharp/EasyMicroservices.Serialization.sln --no-build --verbosity diag
run: |
dotnet test ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-build --verbosity normal
dotnet test ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-build --verbosity normal
dotnet test ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln --no-build --verbosity normal
15 changes: 12 additions & 3 deletions .github/workflows/dotnet-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,17 @@ jobs:
7.0.x
8.0.x
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.Serialization.sln
run: |
dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln
dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln
dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln
- name: Build
run: dotnet build ./src/CSharp/EasyMicroservices.Serialization.sln --no-restore
run: |
dotnet build ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-restore
dotnet build ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-restore
dotnet build ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln --no-restore
- name: Test
run: dotnet test ./src/CSharp/EasyMicroservices.Serialization.sln --no-build --verbosity diag
run: |
dotnet test ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-build --verbosity normal
dotnet test ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-build --verbosity normal
dotnet test ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln --no-build --verbosity normal
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
- name: Build
run: dotnet build ./src/CSharp/EasyMicroservices.Serialization.sln --no-restore
- name: Test
run: dotnet test ./src/CSharp/EasyMicroservices.Serialization.sln --no-build --verbosity diag
run: dotnet test ./src/CSharp/EasyMicroservices.Serialization.sln --no-build --verbosity normal
15 changes: 12 additions & 3 deletions .github/workflows/nuget-push-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,20 @@ jobs:
env:
DOTNET_INSTALL_DIR: /usr/share/dotnet
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.Serialization.sln
run: |
dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln
dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln
dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln
- name: Build
run: dotnet build ./src/CSharp/EasyMicroservices.Serialization.sln --no-restore
run: |
dotnet build ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-restore
dotnet build ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-restore
dotnet build ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln --no-restore
- name: Test
run: dotnet test ./src/CSharp/EasyMicroservices.Serialization.sln --no-build --verbosity diag
run: |
dotnet test ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-build --verbosity normal
dotnet test ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-build --verbosity normal
dotnet test ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln --no-build --verbosity normal
- name: Create the package
run: dotnet pack ./src/CSharp/EasyMicroservices.Serialization.sln --output nupkgs
- name: Publish the package to NuGet.org
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@ jobs:
DOTNET_INSTALL_DIR: /usr/share/dotnet
- name: build and test
run: |
dotnet restore ./src/CSharp/EasyMicroservices.Serialization.sln
dotnet build ./src/CSharp/EasyMicroservices.Serialization.sln --no-restore
dotnet test ./src/CSharp/EasyMicroservices.Serialization.sln --no-build
dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln
dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln
dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln
dotnet build ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-restore
dotnet build ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-restore
dotnet build ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln --no-restore
dotnet test ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-build
dotnet test ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-build
dotnet test ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln --no-build
- name: setup semantic-release
run: |
npm install -D semantic-release
Expand Down

0 comments on commit f069b65

Please sign in to comment.