Bump csharpier from 1.1.2 to 1.2.3 #384
Workflow file for this run
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: Run UI Tests | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| types: [opened, synchronize, reopened, labeled] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up .NET Core | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| global-json-file: global.json | |
| - name: Set up nuget dependency caching for faster builds | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget- | |
| - name: Set up playwright dependency caching for faster builds | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: ${{ runner.os }}-ms-playwright-${{ hashFiles('**/.playwright/package/package.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-ms-playwright- | |
| - name: Start Blazor server | |
| run: dotnet run --project ./OpenAIChatGPTBlazor/OpenAIChatGPTBlazor.csproj --launch-profile http & | |
| env: | |
| OpenAi__DeploymentName: xxxxxxxxxample | |
| OpenAi__Hint: xxxxxxxxxample | |
| ConnectionStrings__openAi : Endpoint=https://myoaiservice.openai.azure.com/;Key=xxx; | |
| ConnectionStrings__openAi_Image : Endpoint=https://myoaiservice.openai.azure.com/;Key=xxx; | |
| - name: Build Tests | |
| run: dotnet build ./Tests/UiTests/UiTests.csproj | |
| - name: Install Playwright | |
| run: dotnet tool install --global Microsoft.Playwright.CLI && playwright install --with-deps | |
| - name: Test | |
| run: dotnet test ./Tests/UiTests/UiTests.csproj | |
| env: | |
| AppUrl : http://localhost:5255 | |
| # - name: Upload artifact for deployment job | |
| # uses: actions/upload-artifact@v3 | |
| # with: | |
| # name: .net-app | |
| # path: ${{env.DOTNET_ROOT}}/myapp |