Skip to content

Commit 0e756fc

Browse files
[~] Testing github actions extras
1 parent 2b8a729 commit 0e756fc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,12 @@ public async Task GeneratePdf()
6363

6464
using IBrowser? browser = await Puppeteer.LaunchAsync(new LaunchOptions
6565
{
66-
ExecutablePath = installedBrowser.GetExecutablePath(),
67-
Headless = true
66+
ExecutablePath = isGitHubActions != null ? "/usr/bin/chromium-browser" : installedBrowser.GetExecutablePath(),
67+
Headless = true,
68+
DumpIO = isGitHubActions != null ? true : false, // Enables debug logs
69+
Args = isGitHubActions != null ?
70+
new[] { "--database=/tmp" }
71+
: [] // No additional arguments locally
6872
});
6973

7074
try

0 commit comments

Comments
 (0)