diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2a4ed6..ee05bfe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI on: push: branches: - - master + - master pull_request: branches: - master @@ -13,29 +13,25 @@ jobs: fail-fast: false runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Setup dotnet 5.0 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '5.0.100' - - name: Setup dotnet 3.1 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '3.1.x' - - name: Build and Test - run: ./Build.ps1 - shell: pwsh - - name: Push to MyGet - env: - NUGET_URL: https://www.myget.org/F/jbogard-ci/api/v3/index.json - NUGET_API_KEY: ${{ secrets.MYGET_JBOGARD_CI_API_KEY }} - run: ./Push.ps1 - shell: pwsh - - name: Artifacts - uses: actions/upload-artifact@v2 - with: - name: artifacts - path: artifacts/**/* \ No newline at end of file + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Setup dotnet SDK 6.0 + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 6.0.x + - name: Build and Test + run: ./Build.ps1 + shell: pwsh + - name: Push to MyGet + env: + NUGET_URL: https://www.myget.org/F/jbogard-ci/api/v3/index.json + NUGET_API_KEY: ${{ secrets.MYGET_JBOGARD_CI_API_KEY }} + run: ./Push.ps1 + shell: pwsh + - name: Artifacts + uses: actions/upload-artifact@v2 + with: + name: artifacts + path: artifacts/**/* \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 98d5bf2..623e2ad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,42 +3,38 @@ name: Release on: push: tags: - - '*.*.*' + - '*.*.*' jobs: build: strategy: fail-fast: false runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Setup dotnet 5.0 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '5.0.100' - - name: Setup dotnet 3.1 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '3.1.x' - - name: Build and Test - run: ./Build.ps1 - shell: pwsh - - name: Push to MyGet - env: - NUGET_URL: https://www.myget.org/F/jbogard-ci/api/v3/index.json - NUGET_API_KEY: ${{ secrets.MYGET_JBOGARD_CI_API_KEY }} - run: ./Push.ps1 - shell: pwsh - - name: Push to NuGet - env: - NUGET_URL: https://api.nuget.org/v3/index.json - NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} - run: ./Push.ps1 - shell: pwsh - - name: Artifacts - uses: actions/upload-artifact@v2 - with: - name: artifacts - path: artifacts/**/* \ No newline at end of file + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Setup dotnet SDK 6.0 + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 6.0.x + - name: Build and Test + run: ./Build.ps1 + shell: pwsh + - name: Push to MyGet + env: + NUGET_URL: https://www.myget.org/F/jbogard-ci/api/v3/index.json + NUGET_API_KEY: ${{ secrets.MYGET_JBOGARD_CI_API_KEY }} + run: ./Push.ps1 + shell: pwsh + - name: Push to NuGet + env: + NUGET_URL: https://api.nuget.org/v3/index.json + NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} + run: ./Push.ps1 + shell: pwsh + - name: Artifacts + uses: actions/upload-artifact@v2 + with: + name: artifacts + path: artifacts/**/* \ No newline at end of file diff --git a/README.md b/README.md index 2055afe..a577894 100644 --- a/README.md +++ b/README.md @@ -43,5 +43,5 @@ This package exposes an [`ActivitySource`](https://docs.microsoft.com/en-us/dotn All the available [OpenTelemetry semantic tags](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/semantic_conventions/database.md) are set. -This package supports MongoDB C# Driver versions 2.3 to 3.0. +This package supports MongoDB C# Driver versions 2.17.1 to 3.0. diff --git a/src/MongoDB.Driver.Core.Extensions.DiagnosticSources/MongoDB.Driver.Core.Extensions.DiagnosticSources.csproj b/src/MongoDB.Driver.Core.Extensions.DiagnosticSources/MongoDB.Driver.Core.Extensions.DiagnosticSources.csproj index 3b76686..1c09ad2 100644 --- a/src/MongoDB.Driver.Core.Extensions.DiagnosticSources/MongoDB.Driver.Core.Extensions.DiagnosticSources.csproj +++ b/src/MongoDB.Driver.Core.Extensions.DiagnosticSources/MongoDB.Driver.Core.Extensions.DiagnosticSources.csproj @@ -1,24 +1,24 @@ - - netstandard2.0 + + netstandard2.0 + NU5100 + Jimmy Bogard + Jimmy Bogard + Apache-2.0 + true + true + snupkg + true + true + true + - Jimmy Bogard - Jimmy Bogard - Apache-2.0 - true - true - snupkg - true - true - true - + + + + + + - - - - - - - - + \ No newline at end of file diff --git a/tests/MongoDB.Driver.Core.Extensions.DiagnosticSources.Tests/MongoDB.Driver.Core.Extensions.DiagnosticSources.Tests.csproj b/tests/MongoDB.Driver.Core.Extensions.DiagnosticSources.Tests/MongoDB.Driver.Core.Extensions.DiagnosticSources.Tests.csproj index cb1dd6b..15eb85c 100644 --- a/tests/MongoDB.Driver.Core.Extensions.DiagnosticSources.Tests/MongoDB.Driver.Core.Extensions.DiagnosticSources.Tests.csproj +++ b/tests/MongoDB.Driver.Core.Extensions.DiagnosticSources.Tests/MongoDB.Driver.Core.Extensions.DiagnosticSources.Tests.csproj @@ -1,27 +1,29 @@  - - netcoreapp3.1 + + net6.0 + false + - false - + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - + + +