Internationalization test #20
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
| # For more information on GitHub Actions, refer to https://github.com/features/actions | |
| # For a complete CI/CD sample to get started with GitHub Action workflows for Desktop Applications, | |
| # refer to https://github.com/microsoft/github-actions-for-desktop-apps | |
| name: Debug build check | |
| on: | |
| pull_request: | |
| types: ['opened', 'reopened', 'synchronize', 'ready_for_review'] | |
| jobs: | |
| build: | |
| if: github.event.pull_request.draft == false | |
| strategy: | |
| matrix: | |
| configuration: [Debug] | |
| runs-on: windows-latest # For a list of available runner types, refer to | |
| # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on | |
| env: | |
| Solution_Name: FactorioCalc.sln | |
| Test_Project_Path: Yafc.Model.Tests\Yafc.Model.Tests.csproj | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| # Install the .NET Core workload | |
| - name: Install .NET Core | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild | |
| - name: Setup MSBuild.exe | |
| uses: microsoft/setup-msbuild@v2 | |
| # For reasons that are unclear, the build fails if the generated files do not exist at the beginning of the build. | |
| # Explicitly build the generator to generate the files, then let the implicit build take care of everything else. | |
| - name: Generate source | |
| run: dotnet build ./Yafc.I18n.Generator/ | |
| # Execute all unit tests in the solution | |
| - name: Execute unit tests | |
| run: dotnet test | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Format | |
| run: dotnet format --verify-no-changes --diagnostics IDE0055 --severity info --verbosity diagnostic |