Gemini CLI Smoke #24
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: Gemini CLI Smoke | |
| on: | |
| schedule: | |
| - cron: '0 2 * * *' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| DOTNET_VERSION: '10.0.x' | |
| NODE_VERSION: '22' | |
| jobs: | |
| gemini-cli-smoke: | |
| name: Gemini CLI Smoke (${{ matrix.os }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Enable Git long paths (Windows) | |
| if: runner.os == 'Windows' | |
| run: git config --global core.longpaths true | |
| - name: Checkout | |
| uses: actions/checkout@v6.0.2 | |
| with: | |
| submodules: recursive | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6.3.0 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5.2.0 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Install Gemini CLI | |
| shell: bash | |
| run: | | |
| npm install --no-save @google/gemini-cli | |
| echo "$GITHUB_WORKSPACE/node_modules/.bin" >> "$GITHUB_PATH" | |
| - name: Restore | |
| run: dotnet restore ManagedCode.GeminiSharpSDK.slnx | |
| - name: Build | |
| run: dotnet build ManagedCode.GeminiSharpSDK.slnx -c Release -warnaserror --no-restore | |
| - name: Test (full solution) | |
| run: dotnet test --solution ManagedCode.GeminiSharpSDK.slnx -c Release --no-build -- --treenode-filter "/*/*/*/*[RequiresGeminiAuth!=true]" | |
| - name: Smoke tests (Gemini CLI discover + invoke) | |
| run: dotnet test --project GeminiSharpSDK.Tests/GeminiSharpSDK.Tests.csproj -c Release --no-build -- --treenode-filter "/*/*/*/GeminiCli_Smoke_*" |