fix(client): dispose throttle semaphore #425
Workflow file for this run
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: Test .NET Libraries | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'README.md' | |
- 'CHANGELOG.md' | |
- 'Docs/**' | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
env: | |
BUILD_CONFIGURATION: 'Debug' | |
jobs: | |
test-windows: | |
name: 'Windows' | |
runs-on: windows-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
9.0.x | |
8.0.x | |
- name: Restore dependencies | |
run: dotnet restore SectigoCertificateManager.sln | |
- name: Build solution | |
run: dotnet build SectigoCertificateManager.sln --configuration ${{ env.BUILD_CONFIGURATION }} --no-restore | |
- name: Run tests | |
run: dotnet test SectigoCertificateManager.sln --configuration ${{ env.BUILD_CONFIGURATION }} --no-build --verbosity normal --logger trx --collect:"XPlat Code Coverage" | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-results-windows | |
path: '**/*.trx' | |
- name: Upload coverage reports | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: coverage-reports-windows | |
path: '**/coverage.cobertura.xml' | |
test-linux: | |
name: 'Linux' | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
9.0.x | |
8.0.x | |
- name: Install Mono | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y mono-complete | |
- name: Restore dependencies | |
run: dotnet restore SectigoCertificateManager.sln | |
- name: Build solution | |
run: dotnet build SectigoCertificateManager.sln --configuration ${{ env.BUILD_CONFIGURATION }} --no-restore | |
- name: Run tests | |
run: dotnet test SectigoCertificateManager.sln --configuration ${{ env.BUILD_CONFIGURATION }} --no-build --verbosity normal --logger trx --collect:"XPlat Code Coverage" | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-results-linux | |
path: '**/*.trx' | |
- name: Upload coverage reports | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: coverage-reports-linux | |
path: '**/coverage.cobertura.xml' | |
test-macos: | |
name: 'macOS' | |
runs-on: macos-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
9.0.x | |
8.0.x | |
- name: Install Mono | |
run: brew install mono | |
- name: Restore dependencies | |
run: dotnet restore SectigoCertificateManager.sln | |
- name: Build solution | |
run: dotnet build SectigoCertificateManager.sln --configuration ${{ env.BUILD_CONFIGURATION }} --no-restore | |
- name: Run tests | |
run: dotnet test SectigoCertificateManager.sln --configuration ${{ env.BUILD_CONFIGURATION }} --no-build --verbosity normal --logger trx --collect:"XPlat Code Coverage" | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-results-macos | |
path: '**/*.trx' | |
- name: Upload coverage reports | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: coverage-reports-macos | |
path: '**/coverage.cobertura.xml' |