Merge pull request #10 from JsonViewer-Component/dependabot/github_ac… #26
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 & Test | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| env: | |
| DOTNET_VERSION: '7.0.x' | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | |
| DOTNET_NOLOGO: true | |
| jobs: | |
| build: | |
| name: 🔨 Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📥 Checkout | |
| uses: actions/checkout@v6 | |
| - name: ⚙️ Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: 📦 Restore dependencies | |
| run: dotnet restore JsonViewer.Blazor.sln | |
| - name: 🏗️ Build Component | |
| run: dotnet build src/Component/Component.csproj --no-restore --configuration Release | |
| - name: 🏗️ Build Demo | |
| run: dotnet build src/Blazor.Demo/Blazor.Demo.csproj --no-restore --configuration Release | |
| - name: ✅ Build Summary | |
| run: | | |
| echo "## 🏗️ Build Summary" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "- **Component**: ✅ Built successfully" >> $GITHUB_STEP_SUMMARY | |
| echo "- **Demo**: ✅ Built successfully" >> $GITHUB_STEP_SUMMARY | |
| echo "- **.NET Version**: ${{ env.DOTNET_VERSION }}" >> $GITHUB_STEP_SUMMARY |