From 9b4b5d7b35b8d6b3b6b64cbd1254082fb46a0efb Mon Sep 17 00:00:00 2001 From: jc Date: Mon, 26 Feb 2024 18:01:41 +0800 Subject: [PATCH] fix ci --- .github/workflows/build.yml | 9 +++++---- README.md | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e19f432..ce5c7bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v1 with: - dotnet-version: '6.0' # s.NET 6 + dotnet-version: '6.0' # 更新為.NET 6 - name: Restore dependencies run: dotnet restore @@ -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/codecov-action@v4.0.1 with: @@ -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' # ȦbDWeNuGet] + if: github.ref == 'refs/heads/main' # 僅在主分支上推送NuGet包 diff --git a/README.md b/README.md index 678ca36..c2e55ef 100644 --- a/README.md +++ b/README.md @@ -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)