Playwright project tests #71
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Playwright project tests | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| runner: | |
| description: "Select the runner" | |
| required: false | |
| type: choice | |
| options: | |
| - ubuntu-latest | |
| - windows-latest | |
| default: ubunntu-latest | |
| pull_request: | |
| jobs: | |
| PlaywrightProjectTests: | |
| runs-on: ${{ inputs.runner || 'ubuntu-latest' }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET Core SDK '8.0.x' | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: Run Blazor app | |
| run: | | |
| cd ./src/BlazorApp | |
| dotnet run & | |
| - name: Test Blazor app | |
| run: | | |
| cd ./Behavioral.Automation.Playwright/UITests | |
| dotnet test |