Skip to content

Commit 01e7c40

Browse files
.
1 parent 376cb3a commit 01e7c40

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/test-install.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ on:
1313
paths-ignore:
1414
- 'documentation/**'
1515
- 'design/**'
16-
17-
env:
18-
RUNNING_ON_GITHUB_ACTIONS: ${{ env.RUNNING_ON_GITHUB }}
16+
1917

2018
jobs:
2119
test_install:
@@ -30,5 +28,7 @@ jobs:
3028
run: echo "RUNNING_ON_GITHUB=1" >> $GITHUB_ENV
3129
- name: do test install in case of merged pull request
3230
run: cd /home/runner/work/firewall-orchestrator/firewall-orchestrator && ansible-playbook -e force_install=true site.yml -K
31+
env:
32+
RUNNING_ON_GITHUB_ACTIONS: ${{ env.RUNNING_ON_GITHUB }}
3333
- name: switch to fworch user for c# unit tests
3434
run: sudo su -l fworch && cd ~/test/csharp/FWO.Test && dotnet test

roles/tests-unit/files/FWO.Test/HtmlToPdfTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ public async Task GeneratePdf()
2626

2727
string? isGitHubActions = Environment.GetEnvironmentVariable("GITHUB_ACTIONS");
2828
string? isGitHubActions2 = Environment.GetEnvironmentVariable("RUNNING_ON_GITHUB_ACTIONS");
29+
string? isGitHubActions3 = Environment.GetEnvironmentVariable("RUNNING_ON_GITHUB");
2930

3031
Log.WriteInfo("Test Log", $"GITHUB_ACTIONS? {isGitHubActions}");
3132
Log.WriteInfo("Test Log", $"RUNNING_ON_GITHUB_ACTIONS? {isGitHubActions2}");
33+
Log.WriteInfo("Test Log", $"RUNNING_ON_GITHUB? {isGitHubActions2}");
3234

3335
if (!string.IsNullOrEmpty(isGitHubActions))
3436
{

0 commit comments

Comments
 (0)