Merge pull request #34 from tui-cs/release/v0.3.0 #191
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: CI | |
| on: | |
| push: | |
| branches: ['**'] | |
| pull_request: | |
| branches: [main, develop] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '10.0.x' | |
| dotnet-quality: 'preview' | |
| - name: Restore | |
| run: dotnet restore Terminal.Gui.Cli.slnx | |
| - name: Build | |
| run: dotnet build Terminal.Gui.Cli.slnx --no-restore -c Debug | |
| - name: Restore .NET tools | |
| if: matrix.os == 'ubuntu-latest' | |
| run: dotnet tool restore | |
| - name: Verify code style | |
| if: matrix.os == 'ubuntu-latest' | |
| shell: bash | |
| run: | | |
| dotnet jb cleanupcode Terminal.Gui.Cli.slnx --no-build --verbosity=WARN | |
| dotnet format Terminal.Gui.Cli.slnx --no-restore | |
| git diff --exit-code | |
| - name: Terminal.Gui.Cli.Tests | |
| run: dotnet run --project tests/Terminal.Gui.Cli.Tests --no-build -c Debug | |
| - name: Terminal.Gui.Cli.IntegrationTests | |
| run: dotnet run --project tests/Terminal.Gui.Cli.IntegrationTests --no-build -c Debug | |
| - name: Terminal.Gui.Cli.SmokeTests | |
| run: dotnet run --project tests/Terminal.Gui.Cli.SmokeTests --no-build -c Debug |