Add structured exec commands and ui click #71
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 — dotnet | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| build-and-test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Restore | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore -c Release | |
| - name: Test (unit + MCP, excluding Integration) | |
| run: | | |
| dotnet test tests/Unityctl.Shared.Tests --no-build -c Release --verbosity normal | |
| dotnet test tests/Unityctl.Core.Tests --no-build -c Release --verbosity normal | |
| dotnet test tests/Unityctl.Cli.Tests --no-build -c Release --verbosity normal | |
| dotnet test tests/Unityctl.Mcp.Tests --no-build -c Release --verbosity normal | |
| - name: Publish CLI | |
| run: > | |
| dotnet publish src/Unityctl.Cli/Unityctl.Cli.csproj | |
| -c Release | |
| --self-contained false | |
| -o publish/cli | |
| - name: Smoke published CLI (Windows) | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| ./publish/cli/unityctl.exe --help | |
| ./publish/cli/unityctl.exe schema --format json | Out-Null | |
| ./publish/cli/unityctl.exe tools --json | Out-Null | |
| - name: Smoke published CLI (Unix) | |
| if: runner.os != 'Windows' | |
| shell: bash | |
| run: | | |
| chmod +x ./publish/cli/unityctl | |
| ./publish/cli/unityctl --help | |
| ./publish/cli/unityctl schema --format json >/dev/null | |
| ./publish/cli/unityctl tools --json >/dev/null |