Skip to content

Commit

Permalink
適当な環境変数名で動作確認。
Browse files Browse the repository at this point in the history
  • Loading branch information
Fumika Koyama committed Nov 9, 2023
1 parent 684c19a commit fd7d054
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/samples-dressca-backend.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
name: テストの実行
continue-on-error: true
env:
ASPNETCORE_ENVIRONMENT: CI
TEST_ENVIRONMENT: CI
run: dotnet test --no-build --logger trx --verbosity normal --configuration ${{ env.BUILD_CONFIGURATION }} --collect "XPlat Code Coverage"

- id: create-test-result-report
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class CustomWebApplicationFactory<TProgram>
{
protected override void ConfigureWebHost(IWebHostBuilder builder)
{
var env = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Development";
var env = Environment.GetEnvironmentVariable("TEST_ENVIRONMENT") ?? "Development";

//var webhostenv = builder.GetSetting("environment");
//builder.UseEnvironment("Development");
Expand Down

0 comments on commit fd7d054

Please sign in to comment.