deps: Bump Microsoft.Extensions.Configuration.Abstractions from 9.0.5 to 9.0.8 #14
Workflow file for this run
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: PR Validation | |
| on: | |
| pull_request: | |
| branches: [ main, develop ] | |
| env: | |
| DOTNET_VERSION: '9.0.x' | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
| DOTNET_NOLOGO: true | |
| jobs: | |
| validate-pr: | |
| name: Validate Pull Request | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Cache NuGet packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget- | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Check code formatting | |
| run: dotnet format --verify-no-changes --verbosity diagnostic | |
| - name: Build solution | |
| run: dotnet build --configuration Release --no-restore | |
| - name: Run tests | |
| run: dotnet test --configuration Release --no-build --verbosity minimal | |
| - name: Check for StyleCop violations | |
| run: dotnet build --configuration Release --verbosity normal | tee build-output.log && ! grep -q "warning SA" build-output.log | |
| - name: Validate project structure | |
| run: | | |
| # Check that all projects are included in solution | |
| echo "Validating solution structure..." | |
| dotnet sln list | |
| # Check that test projects follow naming convention | |
| find src -name "*.Tests.csproj" | while read testproj; do | |
| echo "Found test project: $testproj" | |
| done |