- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 94
 
feat: implement locale-specific build workflow #3197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 
           Claude finished @thomhurst's task —— View job PR Review CompleteThis PR implements locale-specific testing to ensure TUnit handles decimal values correctly across different cultures. Here's my comprehensive review: Todo List:
 📋 Review Findings✅ Strengths
 
 | 
    
| strategy: | ||
| matrix: | ||
| locale: [fr-FR, pl-PL, de-DE] | ||
| fail-fast: true | ||
| runs-on: ubuntu-latest | ||
| 
               | 
          ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| with: | ||
| fetch-depth: 0 | ||
| 
               | 
          ||
| - name: Setup .NET 8 | ||
| uses: actions/setup-dotnet@v5 | ||
| with: | ||
| dotnet-version: 8.0.x | ||
| 
               | 
          ||
| - name: Setup .NET 9 | ||
| uses: actions/setup-dotnet@v5 | ||
| with: | ||
| dotnet-version: 9.0.x | ||
| 
               | 
          ||
| - name: Setup .NET 10 | ||
| uses: actions/setup-dotnet@v5 | ||
| with: | ||
| dotnet-version: 10.0.x | ||
| 
               | 
          ||
| - name: Generate and set locale for subsequent steps | ||
| run: | | ||
| # Convert hyphen (fr-FR) to underscore (fr_FR) which is the correct locale name on Ubuntu | ||
| LOCALE=${{ matrix.locale }} | ||
| LOCALE=${LOCALE/-/_} | ||
| 
               | 
          ||
| sudo apt-get update | ||
| sudo apt-get install -y locales | ||
| sudo locale-gen "${LOCALE}.UTF-8" | ||
| sudo update-locale LANG="${LOCALE}.UTF-8" | ||
| 
               | 
          ||
| # Export for subsequent GitHub Actions steps | ||
| echo "LANG=${LOCALE}.UTF-8" >> $GITHUB_ENV | ||
| echo "LC_ALL=${LOCALE}.UTF-8" >> $GITHUB_ENV | ||
| 
               | 
          ||
| - name: Build | ||
| run: dotnet build -c Release | ||
| working-directory: TUnit.TestProject | 
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
          
            
              
                
              
            
            Show autofix suggestion
            Hide autofix suggestion
          
      Copilot Autofix
AI about 1 month ago
To fix the problem and follow least-privilege guidelines, explicitly set the minimal permissions for the workflow or the modularpipeline job. Since there is only one job, and it does not need write permissions, setting
permissions:
  contents: readeither at the workflow root (applies to all jobs), or within the job (applies just to that job) will resolve the issue and satisfy CodeQL. For clarity and maintainability, put this at the root, after name: .NET, so it applies globally and is easily discoverable by future maintainers. No other changes required.
- 
    
    
    
Copy modified lines R2-R3  
| @@ -1,4 +1,6 @@ | ||
| name: .NET | ||
| permissions: | ||
| contents: read | ||
| 
             | 
        ||
| on: | ||
| pull_request: | 
- Add DecimalParsingHelper that tries CurrentCulture then InvariantCulture - Update source generator to use culture-aware parsing helper - Make analyzer more permissive with decimal string formats - Fixes issue where decimal attributes failed in non-US cultures 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
| 
           Claude finished @thomhurst's task —— View job 📋 PR Review: Locale-specific Build WorkflowTodo List:
 🎯 Overall AssessmentThis PR implements locale-specific testing to ensure TUnit handles decimal parsing correctly across different cultures. The implementation demonstrates strong engineering practices with comprehensive fallback mechanisms and thorough test coverage. ✅ Strengths
 
 | 
    
| 
           Claude finished @thomhurst's task —— View job Claude finished reviewing the PR 📋 Review Complete
 🎯 Overall AssessmentThis PR implements locale-specific testing to ensure TUnit handles decimal parsing correctly across different cultures. The implementation demonstrates strong engineering practices with comprehensive fallback mechanisms and thorough test coverage. ✅ Strengths
 
 | 
    
No description provided.