Skip to content

Commit

Permalink
add playwright install step
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsonax committed May 12, 2024
1 parent 23b3827 commit efb6c66
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,7 @@ jobs:
~/.nuget/packages
**/obj/*
key: ${{ runner.os }}-nuget_obj-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Build.props') }}
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: 'Run: Test, VerifyStyle'
run: ./build.cmd Test VerifyStyle
3 changes: 2 additions & 1 deletion Examples/AngularAuth/AngularAuth.Playwright/GlobalSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private static void InstallPlayWright()

while (true)
{
var exitCode = Microsoft.Playwright.Program.Main(new[] { "install", "--with-deps", "chromium" });
var exitCode = Microsoft.Playwright.Program.Main(["install", "--with-deps", "chromium"]);

if (exitCode != 0)
{
Expand All @@ -58,6 +58,7 @@ private static void InstallPlayWright()
}
else
{
Console.WriteLine($"Playwright installation failed with code {exitCode}");
return;
}

Expand Down
3 changes: 2 additions & 1 deletion Examples/Vue/Vue.Playwright/GlobalSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private static void InstallPlayWright()

while (true)
{
var exitCode = Microsoft.Playwright.Program.Main(new[] { "install", "--with-deps", "chromium" });
var exitCode = Microsoft.Playwright.Program.Main(["install", "--with-deps", "chromium"]);

if (exitCode != 0)
{
Expand All @@ -59,6 +59,7 @@ private static void InstallPlayWright()
}
else
{
Console.WriteLine($"Playwright installation failed with code {exitCode}");
return;
}

Expand Down

0 comments on commit efb6c66

Please sign in to comment.