mirror of
https://github.com/DuendeSoftware/products
synced 2026-05-24 09:28:24 +00:00
fix: use shell $HOME for SSL_CERT_DIR in dev-certs step
This commit is contained in:
parent
db5e0f0944
commit
13f8d655b2
5 changed files with 7 additions and 20 deletions
3
.github/workflow-gen/StepExtensions.cs
vendored
3
.github/workflow-gen/StepExtensions.cs
vendored
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
8
.github/workflows/bff-ci.yml
vendored
8
.github/workflows/bff-ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
4
.github/workflows/docs-mcp-ci.yml
vendored
4
.github/workflows/docs-mcp-ci.yml
vendored
|
|
@ -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')
|
||||
|
|
|
|||
8
.github/workflows/identity-server-ci.yml
vendored
8
.github/workflows/identity-server-ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue