Skip to content

Commit efb6c66

Browse files
committed
add playwright install step
1 parent 23b3827 commit efb6c66

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/build_and_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,7 @@ jobs:
5050
~/.nuget/packages
5151
**/obj/*
5252
key: ${{ runner.os }}-nuget_obj-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Build.props') }}
53+
- name: Install Playwright Browsers
54+
run: npx playwright install --with-deps chromium
5355
- name: 'Run: Test, VerifyStyle'
5456
run: ./build.cmd Test VerifyStyle

Examples/AngularAuth/AngularAuth.Playwright/GlobalSetup.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private static void InstallPlayWright()
4141

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

4646
if (exitCode != 0)
4747
{
@@ -58,6 +58,7 @@ private static void InstallPlayWright()
5858
}
5959
else
6060
{
61+
Console.WriteLine($"Playwright installation failed with code {exitCode}");
6162
return;
6263
}
6364

Examples/Vue/Vue.Playwright/GlobalSetup.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private static void InstallPlayWright()
4242

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

4747
if (exitCode != 0)
4848
{
@@ -59,6 +59,7 @@ private static void InstallPlayWright()
5959
}
6060
else
6161
{
62+
Console.WriteLine($"Playwright installation failed with code {exitCode}");
6263
return;
6364
}
6465

0 commit comments

Comments
 (0)