feat(blog): 支持按分类及其子分类筛选文章 #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tests | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| dotnet-test: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore | |
| run: dotnet restore StarBlog.sln | |
| - name: Test (with coverage) | |
| run: dotnet test StarBlog.sln -c Release --collect:"XPlat Code Coverage" --settings tests/coverlet.runsettings --results-directory TestResults | |
| - name: Upload TestResults | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: TestResults | |
| path: TestResults | |