mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-27 19:56:56 -07:00
incorporating docker into new orchestrator
This commit is contained in:
@@ -13,13 +13,33 @@ on:
|
||||
description: 'The name of the CLI package to install'
|
||||
required: true
|
||||
type: 'string'
|
||||
image-uri:
|
||||
description: 'The URI of the built sandbox image.'
|
||||
required: true
|
||||
type: 'string'
|
||||
secrets:
|
||||
GEMINI_API_KEY:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
build-sandbox-image:
|
||||
name: 'Build Sandbox Image'
|
||||
runs-on: 'ubuntu-latest'
|
||||
outputs:
|
||||
image-uri: '${{ steps.build-and-push.outputs.image-uri }}'
|
||||
steps:
|
||||
- id: 'build-and-push'
|
||||
uses: './.github/workflows/build-sandbox.yml'
|
||||
with:
|
||||
github-actor: '${{ github.actor }}'
|
||||
github-secret: '${{ secrets.GITHUB_TOKEN }}'
|
||||
github-sha: '${{ github.sha }}'
|
||||
github-ref-name: '${{ github.ref_name }}'
|
||||
dry-run: false
|
||||
|
||||
e2e_linux:
|
||||
name: 'E2E Test (Linux) - ${{ matrix.sandbox }}'
|
||||
needs: 'build-sandbox-image'
|
||||
if: |
|
||||
(github.event_name == 'push' ||
|
||||
github.event_name == 'merge_group' ||
|
||||
@@ -57,16 +77,13 @@ jobs:
|
||||
- name: 'Install dependencies'
|
||||
run: 'npm install ${{ inputs.cli-package-name }}@${{ inputs.version }}'
|
||||
|
||||
- name: 'Set up Docker'
|
||||
if: "matrix.sandbox == 'sandbox:docker'"
|
||||
uses: 'docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435' # ratchet:docker/setup-buildx-action@v3
|
||||
|
||||
- name: 'Run E2E tests'
|
||||
env:
|
||||
GEMINI_API_KEY: '${{ secrets.GEMINI_API_KEY }}'
|
||||
KEEP_OUTPUT: 'true'
|
||||
VERBOSE: 'true'
|
||||
INTEGRATION_TEST_USE_INSTALLED_GEMINI: 'true'
|
||||
GEMINI_SANDBOX_IMAGE: '${{ inputs.image-uri }}'
|
||||
shell: 'bash'
|
||||
run: |
|
||||
if [[ "${{ matrix.sandbox }}" == "sandbox:docker" ]]; then
|
||||
@@ -209,6 +226,7 @@ jobs:
|
||||
needs:
|
||||
- 'e2e_linux'
|
||||
- 'e2e_mac'
|
||||
- 'build-sandbox-image'
|
||||
runs-on: 'ubuntu-latest'
|
||||
steps:
|
||||
- name: 'Check E2E test results'
|
||||
|
||||
Reference in New Issue
Block a user