[Admin/Playground] Update main layout to show/hide the sidebar #85
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: Azure Dev - Build Only | |
on: | |
push: | |
branches: | |
- 'feature/*' | |
paths-ignore: | |
- '.github/**' | |
# pull_request_target: | |
pull_request: | |
branches: | |
- main | |
permissions: | |
id-token: write | |
contents: read | |
issues: write | |
pull-requests: write | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.x | |
- name: Install local certs | |
shell: pwsh | |
run: | | |
dotnet tool update -g linux-dev-certs | |
dotnet linux-dev-certs install | |
- name: Install Aspire workload | |
shell: pwsh | |
run: | | |
dotnet workload update | |
dotnet workload install aspire | |
- name: Restore NuGet packages | |
shell: bash | |
run: | | |
dotnet restore | |
- name: Build solution | |
shell: bash | |
run: | | |
dotnet build | |
- name: Run unit tests | |
shell: bash | |
run: | | |
dotnet test ./test/AzureOpenAIProxy.AppHost.Tests --logger "trx" --collect:"XPlat Code Coverage" | |
dotnet test ./test/AzureOpenAIProxy.ApiApp.Tests --logger "trx" --collect:"XPlat Code Coverage" | |
- name: Run integration tests | |
shell: bash | |
run: | | |
dotnet run --project ./src/AzureOpenAIProxy.AppHost & | |
DOTNET_PID=$! | |
sleep 30 | |
dotnet test ./test/AzureOpenAIProxy.PlaygroundApp.Tests --logger "trx" --collect:"XPlat Code Coverage" | |
kill $DOTNET_PID | |
- name: Publish test results | |
if: ${{ !cancelled() }} | |
id: test-report | |
uses: bibipkins/dotnet-test-reporter@main | |
with: | |
github-token: ${{ secrets.GH_PAT_GRAINED }} | |
results-path: ./**/TestResults/**/*.trx | |
# coverage-path: ./**/TestResults/**/*.xml | |
# coverage-type: cobertura | |
# coverage-threshold: 0 | |
# coverage-threshold: 80 | |
allow-failed-tests: true | |
post-new-comment: true | |
comment-title: "Test Results" | |
# - name: Comment to issue | |
# if: ${{ !cancelled() && (github.event_name == 'pull_request_target' || github.event_name == 'pull_request') }} | |
# uses: actions-cool/issues-helper@v3 | |
# with: | |
# actions: "create-comment" | |
# token: ${{ secrets.GH_PAT_GRAINED }} | |
# issue-number: ${{ github.event.pull_request.number }} | |
# body: | | |
# ## Test Results | |
# ### Tests | |
# | :clipboard: Total | :heavy_check_mark: Passed | :x: Failed | :warning: Skipped | | |
# |-------------------|---------------------------|------------|-------------------| | |
# | ${{ steps.test-report.outputs.tests-total }} | ${{ steps.test-report.outputs.tests-passed }} | ${{ steps.test-report.outputs.tests-failed }} | ${{ steps.test-report.outputs.tests-skipped }} | |