fix: use shell $HOME for SSL_CERT_DIR in dev-certs step

This commit is contained in:
Damian Hickey 2026-03-12 18:41:58 +01:00
parent db5e0f0944
commit 13f8d655b2
5 changed files with 7 additions and 20 deletions

View file

@ -38,8 +38,7 @@ public static class StepExtensions
public static void StepDotNetDevCerts(this Job job)
=> job.Step()
.Name("Dotnet devcerts")
.Env(("SSL_CERT_DIR", "${{ env.HOME }}/.aspnet/dev-certs/trust"))
.Run("dotnet dev-certs https --trust");
.Run("SSL_CERT_DIR=$HOME/.aspnet/dev-certs/trust dotnet dev-certs https --trust");
public static void CachePlaywrightAssets(this Job job)
=> job.Step("playwright-cache")

View file

@ -93,9 +93,7 @@ jobs:
- name: Build
run: dotnet build aspnetcore-authentication-jwtbearer.slnf --no-restore -c Release
- name: Dotnet devcerts
run: dotnet dev-certs https --trust
env:
SSL_CERT_DIR: ${{ env.HOME }}/.aspnet/dev-certs/trust
run: SSL_CERT_DIR=$HOME/.aspnet/dev-certs/trust dotnet dev-certs https --trust
- name: Test - test/AspNetCore.Authentication.JwtBearer.Tests
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"
- id: test-report-test-AspNetCore-Authentication-JwtBearer-Tests

View file

@ -93,9 +93,7 @@ jobs:
- name: Build
run: dotnet build bff.slnf --no-restore -c Release
- name: Dotnet devcerts
run: dotnet dev-certs https --trust
env:
SSL_CERT_DIR: ${{ env.HOME }}/.aspnet/dev-certs/trust
run: SSL_CERT_DIR=$HOME/.aspnet/dev-certs/trust dotnet dev-certs https --trust
- name: Test - test/Bff.Tests
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"
- id: test-report-test-Bff-Tests
@ -154,9 +152,7 @@ jobs:
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: pwsh test/Hosts.Tests/bin/Release/net10.0/playwright.ps1 install --with-deps
- name: Dotnet devcerts
run: dotnet dev-certs https --trust
env:
SSL_CERT_DIR: ${{ env.HOME }}/.aspnet/dev-certs/trust
run: SSL_CERT_DIR=$HOME/.aspnet/dev-certs/trust dotnet dev-certs https --trust
- name: Test - test/Hosts.Tests
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"
- id: test-report-test-Hosts-Tests

View file

@ -93,9 +93,7 @@ jobs:
- name: Build
run: dotnet build docs-mcp.slnf --no-restore -c Release
- name: Dotnet devcerts
run: dotnet dev-certs https --trust
env:
SSL_CERT_DIR: ${{ env.HOME }}/.aspnet/dev-certs/trust
run: SSL_CERT_DIR=$HOME/.aspnet/dev-certs/trust dotnet dev-certs https --trust
playwright:
name: Playwright tests
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')

View file

@ -93,9 +93,7 @@ jobs:
- name: Build
run: dotnet build identity-server.slnf --no-restore -c Release
- name: Dotnet devcerts
run: dotnet dev-certs https --trust
env:
SSL_CERT_DIR: ${{ env.HOME }}/.aspnet/dev-certs/trust
run: SSL_CERT_DIR=$HOME/.aspnet/dev-certs/trust dotnet dev-certs https --trust
- name: Test - test/IdentityServer.IntegrationTests
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"
- id: test-report-test-IdentityServer-IntegrationTests
@ -168,9 +166,7 @@ jobs:
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: pwsh test/IdentityServer.EndToEndTests/bin/Release/net10.0/playwright.ps1 install --with-deps
- name: Dotnet devcerts
run: dotnet dev-certs https --trust
env:
SSL_CERT_DIR: ${{ env.HOME }}/.aspnet/dev-certs/trust
run: SSL_CERT_DIR=$HOME/.aspnet/dev-certs/trust dotnet dev-certs https --trust
- name: Test - test/IdentityServer.EndToEndTests
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"
- id: test-report-test-IdentityServer-EndToEndTests