Skip to content

Commit 13f8d65

Browse files
committed
fix: use shell $HOME for SSL_CERT_DIR in dev-certs step
1 parent db5e0f0 commit 13f8d65

File tree

5 files changed

+7
-20
lines changed

5 files changed

+7
-20
lines changed

.github/workflow-gen/StepExtensions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ public static Step IfGithubEventIsPush(this Step step)
3838
public static void StepDotNetDevCerts(this Job job)
3939
=> job.Step()
4040
.Name("Dotnet devcerts")
41-
.Env(("SSL_CERT_DIR", "${{ env.HOME }}/.aspnet/dev-certs/trust"))
42-
.Run("dotnet dev-certs https --trust");
41+
.Run("SSL_CERT_DIR=$HOME/.aspnet/dev-certs/trust dotnet dev-certs https --trust");
4342

4443
public static void CachePlaywrightAssets(this Job job)
4544
=> job.Step("playwright-cache")

.github/workflows/aspnetcore-authentication-jwtbearer-ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ jobs:
9393
- name: Build
9494
run: dotnet build aspnetcore-authentication-jwtbearer.slnf --no-restore -c Release
9595
- name: Dotnet devcerts
96-
run: dotnet dev-certs https --trust
97-
env:
98-
SSL_CERT_DIR: ${{ env.HOME }}/.aspnet/dev-certs/trust
96+
run: SSL_CERT_DIR=$HOME/.aspnet/dev-certs/trust dotnet dev-certs https --trust
9997
- name: Test - test/AspNetCore.Authentication.JwtBearer.Tests
10098
run: dotnet test test/AspNetCore.Authentication.JwtBearer.Tests -c Release --no-build --logger "console;verbosity=normal" --logger "trx;LogFileName=test/AspNetCore.Authentication.JwtBearer.Tests-tests.trx" --collect:"XPlat Code Coverage"
10199
- id: test-report-test-AspNetCore-Authentication-JwtBearer-Tests

.github/workflows/bff-ci.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ jobs:
9393
- name: Build
9494
run: dotnet build bff.slnf --no-restore -c Release
9595
- name: Dotnet devcerts
96-
run: dotnet dev-certs https --trust
97-
env:
98-
SSL_CERT_DIR: ${{ env.HOME }}/.aspnet/dev-certs/trust
96+
run: SSL_CERT_DIR=$HOME/.aspnet/dev-certs/trust dotnet dev-certs https --trust
9997
- name: Test - test/Bff.Tests
10098
run: dotnet test test/Bff.Tests -c Release --no-build --logger "console;verbosity=normal" --logger "trx;LogFileName=test/Bff.Tests-tests.trx" --collect:"XPlat Code Coverage"
10199
- id: test-report-test-Bff-Tests
@@ -154,9 +152,7 @@ jobs:
154152
if: steps.playwright-cache.outputs.cache-hit != 'true'
155153
run: pwsh test/Hosts.Tests/bin/Release/net10.0/playwright.ps1 install --with-deps
156154
- name: Dotnet devcerts
157-
run: dotnet dev-certs https --trust
158-
env:
159-
SSL_CERT_DIR: ${{ env.HOME }}/.aspnet/dev-certs/trust
155+
run: SSL_CERT_DIR=$HOME/.aspnet/dev-certs/trust dotnet dev-certs https --trust
160156
- name: Test - test/Hosts.Tests
161157
run: dotnet test test/Hosts.Tests -c Release --no-build --logger "console;verbosity=normal" --logger "trx;LogFileName=test/Hosts.Tests-tests.trx" --collect:"XPlat Code Coverage"
162158
- id: test-report-test-Hosts-Tests

.github/workflows/docs-mcp-ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ jobs:
9393
- name: Build
9494
run: dotnet build docs-mcp.slnf --no-restore -c Release
9595
- name: Dotnet devcerts
96-
run: dotnet dev-certs https --trust
97-
env:
98-
SSL_CERT_DIR: ${{ env.HOME }}/.aspnet/dev-certs/trust
96+
run: SSL_CERT_DIR=$HOME/.aspnet/dev-certs/trust dotnet dev-certs https --trust
9997
playwright:
10098
name: Playwright tests
10199
if: (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) || (github.event_name == 'push') || (github.event_name == 'workflow_dispatch')

.github/workflows/identity-server-ci.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ jobs:
9393
- name: Build
9494
run: dotnet build identity-server.slnf --no-restore -c Release
9595
- name: Dotnet devcerts
96-
run: dotnet dev-certs https --trust
97-
env:
98-
SSL_CERT_DIR: ${{ env.HOME }}/.aspnet/dev-certs/trust
96+
run: SSL_CERT_DIR=$HOME/.aspnet/dev-certs/trust dotnet dev-certs https --trust
9997
- name: Test - test/IdentityServer.IntegrationTests
10098
run: dotnet test test/IdentityServer.IntegrationTests -c Release --no-build --logger "console;verbosity=normal" --logger "trx;LogFileName=test/IdentityServer.IntegrationTests-tests.trx" --collect:"XPlat Code Coverage"
10199
- id: test-report-test-IdentityServer-IntegrationTests
@@ -168,9 +166,7 @@ jobs:
168166
if: steps.playwright-cache.outputs.cache-hit != 'true'
169167
run: pwsh test/IdentityServer.EndToEndTests/bin/Release/net10.0/playwright.ps1 install --with-deps
170168
- name: Dotnet devcerts
171-
run: dotnet dev-certs https --trust
172-
env:
173-
SSL_CERT_DIR: ${{ env.HOME }}/.aspnet/dev-certs/trust
169+
run: SSL_CERT_DIR=$HOME/.aspnet/dev-certs/trust dotnet dev-certs https --trust
174170
- name: Test - test/IdentityServer.EndToEndTests
175171
run: dotnet test test/IdentityServer.EndToEndTests -c Release --no-build --logger "console;verbosity=normal" --logger "trx;LogFileName=test/IdentityServer.EndToEndTests-tests.trx" --collect:"XPlat Code Coverage"
176172
- id: test-report-test-IdentityServer-EndToEndTests

0 commit comments

Comments
 (0)