add playwright dependencies, try multiline shell command
msbuild / build (push) Has been cancelled Details

This commit is contained in:
Greg Gauthier 2024-02-27 13:28:41 +00:00
parent 0521655e69
commit 751efe84df
1 changed files with 10 additions and 2 deletions

View File

@ -26,12 +26,20 @@ jobs:
working-directory: ${{runner.workspace}}
run: export PATH="$PATH:/root/.dotnet/tools" && pwd && ls -l && dotnet --info && pwsh --version
- name: Start Web
- name: Start Web App
shell: bash
working-directory: ${{runner.workspace}}
run: cd MyWebApp && nohup dotnet run &
- name: Build Playwright & Add Dependencies
shell: bash
working-directory: ${{runner.workspace}}
run: export PATH="$PATH:/root/.dotnet/tools" && \
cd PlaywrightTests && dotnet build && \
pwsh bin/Debug/net7.0/playwright.ps1 install && \
pwsh bin/Debug/net7.0/playwright.ps1 install-deps
- name: Run Playwright Tests
shell: bash
working-directory: ${{runner.workspace}}
run: export PATH="$PATH:/root/.dotnet/tools" && cd PlaywrightTests && dotnet build && pwsh bin/Debug/net7.0/playwright.ps1 install && dotnet test
run: cd PlaywrightTests && dotnet test