From da9fccdc05a79faf71647cf1efb21bd786241281 Mon Sep 17 00:00:00 2001 From: Stuart Lang Date: Thu, 17 Oct 2024 12:18:49 +0100 Subject: [PATCH] Add ci verification tests (#2) * Update Aspire * Add verification tests to CI * Add dependabot config --- .github/dependabot.yml | 27 +++++++++++++++++++ .github/workflows/build.yml | 7 +++++ Directory.Packages.props | 3 ++- .../LocalSqsSnsMessaging.Tests.AppHost.csproj | 4 ++- .../AspireFixture.cs | 1 + 5 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..603c4a2 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,27 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: daily + timezone: Europe/London + - package-ecosystem: nuget + directory: "/" + schedule: + interval: daily + timezone: Europe/London + open-pull-requests-limit: 10 + ignore: + - dependency-name: AWSSDK.SimpleNotificationService + versions: + - "> 3.3.100.1, < 3.8" + - dependency-name: AWSSDK.SQS + versions: + - "> 3.3.100.1, < 3.8" + groups: + xunit: + patterns: + - xunit* + aspire: + patterns: + - Aspire.* \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd3420c..faeb3df 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -63,6 +63,13 @@ jobs: shell: pwsh run: ./build.ps1 + - name: Run LocalStack Verification Tests + if: runner.os == 'linux' + shell: pwsh + run: | + cd ./tests/LocalSqsSnsMessaging.Tests.Verification + dotnet test -c Release + - uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 name: Upload coverage to Codecov with: diff --git a/Directory.Packages.props b/Directory.Packages.props index 313d9a8..fcf6792 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -1,6 +1,7 @@ - + + diff --git a/tests/LocalSqsSnsMessaging.Tests.AppHost/LocalSqsSnsMessaging.Tests.AppHost.csproj b/tests/LocalSqsSnsMessaging.Tests.AppHost/LocalSqsSnsMessaging.Tests.AppHost.csproj index 2b52bc8..8a3e482 100644 --- a/tests/LocalSqsSnsMessaging.Tests.AppHost/LocalSqsSnsMessaging.Tests.AppHost.csproj +++ b/tests/LocalSqsSnsMessaging.Tests.AppHost/LocalSqsSnsMessaging.Tests.AppHost.csproj @@ -1,5 +1,7 @@  + + Exe net8.0 @@ -9,7 +11,7 @@ - + diff --git a/tests/LocalSqsSnsMessaging.Tests.Verification/AspireFixture.cs b/tests/LocalSqsSnsMessaging.Tests.Verification/AspireFixture.cs index 398e566..906794e 100644 --- a/tests/LocalSqsSnsMessaging.Tests.Verification/AspireFixture.cs +++ b/tests/LocalSqsSnsMessaging.Tests.Verification/AspireFixture.cs @@ -1,3 +1,4 @@ +using Aspire.Hosting; using Aspire.Hosting.Testing; namespace LocalSqsSnsMessaging.Tests.Verification;