Merge pull request #54 from BinaryAlley/refactor/update-github-action-disable-parallel-test-run

Updates GitHub Actions to disable parallel tests run
This commit is contained in:
BinaryAlley authored and GitHub committed 2024-11-07 09:52:22 +02:00
commit 4c2956f204
2 files changed
+2 -9

No files matched your search

+1 -8
View File
@@ -6,17 +6,10 @@ on:
- master
workflow_dispatch: # enable manual triggers
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
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
@@ -28,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
run: dotnet test src/Lumina.sln --no-build --verbosity normal
@@ -67,7 +67,7 @@ public class LuminaApiFactory : WebApplicationFactory<Program>, IDisposable
{
IServiceProvider scopedServices = scope.ServiceProvider;
LuminaDbContext dbContext = scopedServices.GetRequiredService<LuminaDbContext>();
dbContext.Database.EnsureCreated();
dbContext.Database.Migrate();
}
});
}