Bump the csharpier group with 2 updates #277
Workflow file for this run
This file contains 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 | |
env: | |
DOTNET_VERSION: '6.0.*' # set this to the .NET Core version to use | |
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: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- 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 & | |
env: | |
OpenAi__DeploymentName: xxxxxxxxxample | |
OpenAi__Hint: xxxxxxxxxample | |
ConnectionStrings__openAi : 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 |