-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (46 loc) · 1.62 KB
/
ci.yml
File metadata and controls
58 lines (46 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: CI
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
env:
DOTNET_VERSION: '10.0.x'
NODE_VERSION: '22'
jobs:
build-test:
name: Build and 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_*"