Skip to content

Commit b2ba16a

Browse files
print env
1 parent 839bd96 commit b2ba16a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ public async Task GeneratePdf()
1919
{
2020
var isGitHubActions = Environment.GetEnvironmentVariable("GITHUB_ACTIONS") == "true";
2121

22+
if(Environment.GetEnvironmentVariable("GITHUB_ACTIONS") is null || string.IsNullOrEmpty(Environment.GetEnvironmentVariable("GITHUB_ACTIONS")))
23+
{
24+
Log.WriteError("Test Log", "GITHUB_ACTIONS is null or empty!");
25+
}
26+
27+
foreach (DictionaryEntry entry in Environment.GetEnvironmentVariables())
28+
{
29+
Log.WriteInfo("Test Log", $"Key: {entry.Key}, Value: {entry.Value}");
30+
}
31+
2232
// the PDF generation with puppeteer is currently not working in GitHub Actions
2333
if (!isGitHubActions)
2434
{

0 commit comments

Comments
 (0)