From 1a2aa36126c90cc7f225d239e145582e1d20dca0 Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Wed, 6 Nov 2024 22:07:58 +0200 Subject: [PATCH 1/3] Updates GitHub Actions to disable parallel tests run --- .github/workflows/run-tests.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index c303c406..fcc5ba31 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,11 +12,12 @@ concurrency: jobs: test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + max-parallel: 1 environment: test - env: # Set Environment options that are meant to be left empty so the user fills them - JwtSettings__SecretKey: ${{ secrets.JWT_SETTINGS_SECRET_KEY }} - EncryptionSettings__SecretKey: ${{ secrets.ENCRYPTION_SETTINGS_SECRET_KEY }} steps: - uses: actions/checkout@v2 - name: Set up .NET From 5e25474831d2ce51591950ecae6eaa7419fa9a07 Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Wed, 6 Nov 2024 22:30:52 +0200 Subject: [PATCH 2/3] Changes to use database migrations during integration tests --- .../Common/Setup/LuminaApiFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/LuminaApiFactory.cs b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/LuminaApiFactory.cs index 434c29c2..5c02727c 100644 --- a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/LuminaApiFactory.cs +++ b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Common/Setup/LuminaApiFactory.cs @@ -67,7 +67,7 @@ public class LuminaApiFactory : WebApplicationFactory, IDisposable { IServiceProvider scopedServices = scope.ServiceProvider; LuminaDbContext dbContext = scopedServices.GetRequiredService(); - dbContext.Database.EnsureCreated(); + dbContext.Database.Migrate(); } }); } From a34ba949a7851b22b590ebce8c207c8679598664 Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Thu, 7 Nov 2024 09:49:59 +0200 Subject: [PATCH 3/3] Reverts GitHub Action script change --- .github/workflows/run-tests.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index fcc5ba31..96210805 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -6,17 +6,9 @@ on: - master workflow_dispatch: # enable manual triggers -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - jobs: test: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] - max-parallel: 1 + runs-on: ubuntu-latest environment: test steps: - uses: actions/checkout@v2 @@ -29,4 +21,4 @@ jobs: - name: Build run: dotnet build src/Lumina.sln --no-restore - name: Run tests - run: dotnet test src/Lumina.sln --no-build --verbosity detailed \ No newline at end of file + run: dotnet test src/Lumina.sln --no-build --verbosity normal \ No newline at end of file