mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 17:11: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
|
- master
|
||||||
workflow_dispatch: # enable manual triggers
|
workflow_dispatch: # enable manual triggers
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: test
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up .NET
|
- name: Set up .NET
|
||||||
@@ -28,4 +21,4 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: dotnet build src/Lumina.sln --no-restore
|
run: dotnet build src/Lumina.sln --no-restore
|
||||||
- name: Run tests
|
- 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;
|
IServiceProvider scopedServices = scope.ServiceProvider;
|
||||||
LuminaDbContext dbContext = scopedServices.GetRequiredService<LuminaDbContext>();
|
LuminaDbContext dbContext = scopedServices.GetRequiredService<LuminaDbContext>();
|
||||||
dbContext.Database.EnsureCreated();
|
dbContext.Database.Migrate();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user