Merge branch 'dotnetcore:main' into main #6
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 project | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| - dev | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET Core SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Build | |
| env: | |
| NUGET_API_KEY: ${{secrets.NUGET_API_KEY}} | |
| Bundle: True | |
| run: | | |
| dotnet restore src/BootstrapBlazor --no-cache | |
| dotnet build src/BootstrapBlazor | |
| - name: Test | |
| run: | | |
| dotnet test test/UnitTest --collect:"XPlat Code Coverage" | |
| - name: Upload to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Check Router | |
| run: | | |
| dotnet test test/UnitTestDocs | |
| - name: Check Localizer | |
| run: | | |
| dotnet test test/UnitTest.Localization |