diff --git a/.gitea/workflows/msbuild.yaml b/.gitea/workflows/msbuild.yaml index 0f4c030..7ae6bf9 100644 --- a/.gitea/workflows/msbuild.yaml +++ b/.gitea/workflows/msbuild.yaml @@ -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