diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 6739df2..e786d4f 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -14,23 +14,22 @@ jobs: DB_CONN_STR: ${{ vars.DB_CONN_STR }} DB_USERNAME: ${{ vars.DB_USERNAME }} DB_PASSWORD: ${{ secrets.DB_PASSWORD }} + # The CI Capella cluster advertises a private-endpoint alternate address that + # GitHub runners cannot resolve; use the nodes' default (public) hostnames. + Couchbase__NetworkResolution: default steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - name: Check Memory Free run: | free -m - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v6 with: dotnet-version: 8.0.x - name: Restore dependencies - run: | - cd src/Org.Quickstart.API - dotnet restore + run: dotnet restore Org.Quickstart.sln - name: Build - run: | - cd src/Org.Quickstart.API - dotnet build --configuration Debug --no-restore + run: dotnet build Org.Quickstart.sln --configuration Debug --no-restore - name: Test run: | cd src/Org.Quickstart.IntegrationTests @@ -38,7 +37,7 @@ jobs: - name: Report Status if: always() continue-on-error: true - uses: ravsamhq/notify-slack-action@v1 + uses: ravsamhq/notify-slack-action@2.5.0 with: status: ${{ job.status }} notify_when: "failure,warnings" diff --git a/src/Org.Quickstart.API/Org.Quickstart.API.csproj b/src/Org.Quickstart.API/Org.Quickstart.API.csproj index f556581..ba0c1c7 100644 --- a/src/Org.Quickstart.API/Org.Quickstart.API.csproj +++ b/src/Org.Quickstart.API/Org.Quickstart.API.csproj @@ -11,10 +11,10 @@ - - - - - + + + + + diff --git a/src/Org.Quickstart.API/Program.cs b/src/Org.Quickstart.API/Program.cs index a58a7d4..69d4bdd 100644 --- a/src/Org.Quickstart.API/Program.cs +++ b/src/Org.Quickstart.API/Program.cs @@ -4,7 +4,7 @@ using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using Microsoft.OpenApi.Models; +using Microsoft.OpenApi; using Org.Quickstart.API.Models; using Couchbase.Extensions.DependencyInjection; using Microsoft.AspNetCore.Hosting.Server; diff --git a/src/Org.Quickstart.IntegrationTests/Org.Quickstart.IntegrationTests.csproj b/src/Org.Quickstart.IntegrationTests/Org.Quickstart.IntegrationTests.csproj index 3ef1729..20047e6 100644 --- a/src/Org.Quickstart.IntegrationTests/Org.Quickstart.IntegrationTests.csproj +++ b/src/Org.Quickstart.IntegrationTests/Org.Quickstart.IntegrationTests.csproj @@ -11,18 +11,18 @@ 4 - + - + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all