build(deps): bump actions/checkout from 4 to 7 #360
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: CLI" | |
| on: | |
| push: | |
| paths: | |
| - 'cli/**' | |
| - 'samples/**' | |
| - 'generator/**' | |
| - 'modules/spring-boot-starter/**' | |
| - 'modules/ai/**' | |
| - 'modules/spring-ai/**' | |
| - 'modules/spring-ai-alibaba/**' | |
| - 'modules/langchain4j/**' | |
| - 'modules/adk/**' | |
| - 'modules/koog/**' | |
| - 'modules/embabel/**' | |
| - 'modules/semantic-kernel/**' | |
| - 'modules/agentscope/**' | |
| - 'modules/anthropic/**' | |
| - 'modules/cohere/**' | |
| - 'modules/crewai/**' | |
| - '.github/workflows/cli-e2e.yml' | |
| branches: [main] | |
| pull_request: | |
| paths: | |
| - 'cli/**' | |
| - 'samples/**' | |
| - 'generator/**' | |
| - 'modules/spring-boot-starter/**' | |
| - 'modules/ai/**' | |
| - 'modules/spring-ai/**' | |
| - 'modules/spring-ai-alibaba/**' | |
| - 'modules/langchain4j/**' | |
| - 'modules/adk/**' | |
| - 'modules/koog/**' | |
| - 'modules/embabel/**' | |
| - 'modules/semantic-kernel/**' | |
| - 'modules/agentscope/**' | |
| - 'modules/anthropic/**' | |
| - 'modules/cohere/**' | |
| - 'modules/crewai/**' | |
| - '.github/workflows/cli-e2e.yml' | |
| workflow_dispatch: | |
| jobs: | |
| cli-unit-tests: | |
| name: CLI Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install jq + xmllint | |
| run: sudo apt-get update && sudo apt-get install -y jq libxml2-utils | |
| - name: Run CLI test suite | |
| run: sh cli/test-cli.sh | |
| cli-runtime-tests: | |
| name: CLI Runtime E2E | |
| runs-on: ubuntu-latest | |
| needs: cli-unit-tests | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 21 | |
| distribution: temurin | |
| cache: 'maven' | |
| - name: Build Atmosphere modules | |
| run: ./mvnw -B install -DskipTests -Dgpg.skip=true -Dcheckstyle.skip=true -Dpmd.skip=true -q | |
| - name: Run CLI runtime E2E suite | |
| run: sh cli/e2e-test-cli-runtime.sh | |
| # Two-tier coverage of `atmosphere new --runtime <X>`: | |
| # 1. Scaffold-and-compile (network branch of test-cli.sh, gated on | |
| # ATMOSPHERE_NETWORK_TESTS=1) — for every overlay runtime, scaffold | |
| # ai-chat with the adapter dep injected and confirm `mvn compile` | |
| # resolves and compiles. Runs against the released VERSION pinned | |
| # in cli/atmosphere → catches malformed pom, missing version refs, | |
| # missing repos, SB3-vs-SB4 splits. | |
| # 2. Boot-and-assert (e2e-test-runtime-overlay.sh) — boot the | |
| # scaffolded ai-chat and assert AgentRuntime.name() at /api/admin/ | |
| # runtimes/active matches the requested overlay. Targets the | |
| # locally-installed SNAPSHOT via ATMOSPHERE_VERSION_OVERRIDE so | |
| # adapter changes that haven't shipped to Central are still | |
| # validated. | |
| cli-overlay-e2e: | |
| name: CLI --runtime Overlay E2E | |
| runs-on: ubuntu-latest | |
| needs: cli-unit-tests | |
| timeout-minutes: 25 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 21 | |
| distribution: temurin | |
| cache: 'maven' | |
| - name: Install jq + xmllint + maven | |
| run: sudo apt-get update && sudo apt-get install -y jq libxml2-utils maven | |
| - name: Build Atmosphere modules | |
| run: ./mvnw -B install -DskipTests -Dgpg.skip=true -Dcheckstyle.skip=true -Dpmd.skip=true -q | |
| - name: Resolve SNAPSHOT version | |
| id: version | |
| run: | | |
| v=$(./mvnw -B -q -DforceStdout help:evaluate -Dexpression=project.version) | |
| echo "snapshot=$v" >> "$GITHUB_OUTPUT" | |
| - name: Tier 1 — scaffold + compile (all 7 runtimes) | |
| env: | |
| ATMOSPHERE_NETWORK_TESTS: '1' | |
| # Compile the scaffold against the locally-built SNAPSHOT (installed | |
| # above), not the last release. A sample on main may depend on a module | |
| # added since the last release (e.g. atmosphere-interactions), which by | |
| # definition cannot resolve against the released parent — the override | |
| # is exactly the mechanism for validating the in-repo reactor. Tier 2 | |
| # already uses it. | |
| ATMOSPHERE_VERSION_OVERRIDE: ${{ steps.version.outputs.snapshot }} | |
| run: sh cli/test-cli.sh | |
| - name: Tier 2 — boot + assert AgentRuntime.name() (7 runtimes) | |
| env: | |
| ATMOSPHERE_VERSION_OVERRIDE: ${{ steps.version.outputs.snapshot }} | |
| run: sh cli/e2e-test-runtime-overlay.sh |