Skip to content

Implement DropDownList component with shared ListItem infrastructure #32

Implement DropDownList component with shared ListItem infrastructure

Implement DropDownList component with shared ListItem infrastructure #32

Workflow file for this run

name: Build and Test
on:
push:
branches:
- 'main'
- 'dev'
- 'v*'
pull_request:
branches:
- 'main'
- 'dev'
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore dependencies
run: |
dotnet restore src/BlazorWebFormsComponents/BlazorWebFormsComponents.csproj
dotnet restore src/BlazorWebFormsComponents.Test/BlazorWebFormsComponents.Test.csproj
dotnet restore samples/AfterBlazorServerSide/AfterBlazorServerSide.csproj
dotnet restore samples/AfterBlazorClientSide/AfterBlazorClientSide.csproj
- name: Build library
run: dotnet build src/BlazorWebFormsComponents/BlazorWebFormsComponents.csproj --configuration Release --no-restore
- name: Build test project
run: dotnet build src/BlazorWebFormsComponents.Test/BlazorWebFormsComponents.Test.csproj --configuration Release --no-restore
- name: Build server-side sample
run: dotnet build samples/AfterBlazorServerSide/AfterBlazorServerSide.csproj --configuration Release --no-restore
- name: Build client-side sample
run: dotnet build samples/AfterBlazorClientSide/AfterBlazorClientSide.csproj --configuration Release --no-restore
- name: Run tests
run: dotnet test src/BlazorWebFormsComponents.Test/BlazorWebFormsComponents.Test.csproj --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=test-results.trx"
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: src/BlazorWebFormsComponents.Test/TestResults/*.trx
- name: Publish test results
uses: dorny/test-reporter@v2
if: always()
with:
name: Unit Test Results
path: src/BlazorWebFormsComponents.Test/TestResults/*.trx
reporter: dotnet-trx
fail-on-error: true