Skip to content

docs(solution): update solution and README for QoderCli #7

docs(solution): update solution and README for QoderCli

docs(solution): update solution and README for QoderCli #7

name: CLI Discovery Cross-Platform
on:
push:
paths:
- '.github/workflows/cli-discovery-cross-platform.yml'
- 'src/**'
- 'tests/**'
- 'README.md'
- 'Directory.Build.props'
- 'Directory.Packages.props'
- 'global.json'
- '*.sln'
pull_request:
paths:
- '.github/workflows/cli-discovery-cross-platform.yml'
- 'src/**'
- 'tests/**'
- 'README.md'
- 'Directory.Build.props'
- 'Directory.Packages.props'
- 'global.json'
- '*.sln'
workflow_dispatch:
env:
HAGICODE_REAL_CLI_TESTS: '1'
jobs:
cli-discovery:
name: '${{ matrix.os }} real CLI discovery'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log runner context
run: |
echo "Runner OS: $RUNNER_OS"
echo "Image OS: $ImageOS"
echo "Dotnet setup will use $(cat global.json | tr -d '\n')"
node --version || true
npm --version || true
dotnet --info || true
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24.12.0'
- name: Install and verify CI CLIs
run: |
echo "Installing and verifying CI CLIs on ${RUNNER_OS}"
dotnet run --project src/HagiCode.Libs.CiSetup.Console -- --install --verify
- name: Restore HagiCode.Libs solution
run: |
echo "Restoring HagiCode.Libs.sln on ${RUNNER_OS}"
dotnet restore HagiCode.Libs.sln
- name: Run real CLI discovery tests
run: |
echo "Running CI-targeted real CLI tests on ${RUNNER_OS}"
dotnet test tests/HagiCode.Libs.Providers.Tests/HagiCode.Libs.Providers.Tests.csproj \
--no-restore \
--filter "FullyQualifiedName~ClaudeCodeProviderTests|FullyQualifiedName~CodexProviderTests" \
--logger "console;verbosity=normal"