mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 00:01:10 +00:00
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:
2 files changed
+2
-9
No files matched your search
@@ -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
|
||||
+1
-1
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user