Add BulletedList, SiteMapPath, DataPager, and Table (#331) #215
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: Build and Test | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'dev' | |
| - 'v*' | |
| paths-ignore: | |
| - 'docs/**' | |
| - '**/*.md' | |
| - 'mkdocs.yml' | |
| pull_request: | |
| branches: | |
| - 'main' | |
| - 'dev' | |
| - 'v*' | |
| paths-ignore: | |
| - 'docs/**' | |
| - '**/*.md' | |
| - 'mkdocs.yml' | |
| 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 |