Add --output-on-failure to ctest to diagnose _ML test failures on cma… #103
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: Linux & Windows CI | |
| on: | |
| push: | |
| pull_request: | |
| # Cancel superseded runs on the same branch/PR | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 # v4.2.2 | |
| with: | |
| fetch-depth: 0 | |
| - run: | | |
| git fetch --prune --tags | |
| echo exit code $? | |
| git tag --list | |
| - uses: actions/setup-dotnet@v4 # v4.3.1 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Prepare | |
| run: cmake --version && git submodule init && git submodule update | |
| - name: Build | |
| run: dotnet build -c Debug | |
| - name: SmokeTest | |
| run: dotnet src/EditorConfig.App/bin/Debug/net10.0/EditorConfig.App.dll .editorconfig src/EditorConfig.Tests/MiniMatcherTests.cs | |
| - name: Core tests | |
| run: 'cmake . && ctest . --output-on-failure -E "max_property_(name|value)|max_section_name_ignore"' | |
| - name: Unit tests | |
| # TUnit uses Microsoft.Testing.Platform; `dotnet run` avoids the deprecated VSTest path on .NET 10. | |
| run: dotnet run --project src/EditorConfig.Tests -c Debug | |
| windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 # v4.2.2 | |
| with: | |
| fetch-depth: 0 | |
| - run: | | |
| git fetch --prune --tags | |
| echo exit code $? | |
| git tag --list | |
| - uses: actions/setup-dotnet@v4 # v4.3.1 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Prepare | |
| shell: cmd | |
| run: cmake --version && git submodule init && git submodule update | |
| - name: Build | |
| shell: cmd | |
| run: dotnet build -c Debug | |
| - name: Core tests | |
| shell: cmd | |
| run: 'cmake . && ctest . --output-on-failure -E "max_property_(name|value)|max_section_name_ignore|windows_separator2"' | |
| - name: Unit tests | |
| run: dotnet run --project src/EditorConfig.Tests -c Debug |