Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jiowchern committed Feb 26, 2024
1 parent 8b4f11f commit 9b4b5d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0' # 更新為.NET 6
dotnet-version: '6.0' # 更新為.NET 6

- name: Restore dependencies
run: dotnet restore
Expand All @@ -21,8 +21,9 @@ jobs:
run: dotnet build --no-restore -c Release

- name: Test
run: dotnet test --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover

run: dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
working-directory: ./

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
Expand All @@ -34,4 +35,4 @@ jobs:

- name: Push NuGet Package
run: dotnet nuget push "./nupkg/*.nupkg" --source "https://api.nuget.org/v3/index.json" --api-key ${{ secrets.NUGET_API_KEY }}
if: github.ref == 'refs/heads/main' # 僅在主分支上推送NuGet包
if: github.ref == 'refs/heads/main' # 僅在主分支上推送NuGet包
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# PinionCyber.StateManagement
[![Maintainability](https://api.codeclimate.com/v1/badges/9d9186f471d28c542b17/maintainability)](https://codeclimate.com/github/jiowchern/PinionCyber.StateManagement/maintainability)
[![Maintainability](https://api.codeclimate.com/v1/badges/9d9186f471d28c542b17/maintainability)](https://codeclimate.com/github/jiowchern/PinionCyber.StateManagement/maintainability)[![codecov](https://codecov.io/gh/jiowchern/PinionCyber.StateManagement/graph/badge.svg?token=957MXN7E9S)](https://codecov.io/gh/jiowchern/PinionCyber.StateManagement)
[Readme-EN](Docs/README-en.md)
[Readme-TW](Docs/README-tw.md)

0 comments on commit 9b4b5d7

Please sign in to comment.