fix: Fix an issue where metrics could have NaN or infinite values. (#… #122
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: .NET ObservabilityPlugin | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: ['main'] | |
| pull_request: | |
| branches: ['main'] | |
| paths: | |
| - 'sdk/@launchdarkly/observability-dotnet/**' | |
| - '.github/workflows/dotnet-plugin.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - run: dotnet restore | |
| working-directory: sdk/@launchdarkly/observability-dotnet | |
| - run: dotnet build --no-restore | |
| working-directory: sdk/@launchdarkly/observability-dotnet | |
| - run: dotnet test --no-restore | |
| working-directory: sdk/@launchdarkly/observability-dotnet | |
| - name: Lint | |
| run: dotnet format --verify-no-changes | |
| working-directory: sdk/@launchdarkly/observability-dotnet |