mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
fix(ci): Perform release verification in a separate working dir. (#9234)
Co-authored-by: matt korwel <matt.korwel@gmail.com>
This commit is contained in:
@@ -151,12 +151,6 @@ runs:
|
|||||||
wombat-token-core: '${{ inputs.wombat-token-core }}'
|
wombat-token-core: '${{ inputs.wombat-token-core }}'
|
||||||
wombat-token-cli: '${{ inputs.wombat-token-cli }}'
|
wombat-token-cli: '${{ inputs.wombat-token-cli }}'
|
||||||
|
|
||||||
- name: 'Install deps'
|
|
||||||
working-directory: '${{ inputs.working-directory }}'
|
|
||||||
shell: 'bash'
|
|
||||||
run: |
|
|
||||||
npm install
|
|
||||||
|
|
||||||
- name: '🎁 Bundle'
|
- name: '🎁 Bundle'
|
||||||
working-directory: '${{ inputs.working-directory }}'
|
working-directory: '${{ inputs.working-directory }}'
|
||||||
shell: 'bash'
|
shell: 'bash'
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ runs:
|
|||||||
- name: 'Checkout'
|
- name: 'Checkout'
|
||||||
uses: 'actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955' # ratchet:actions/checkout@v4
|
uses: 'actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955' # ratchet:actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
path: 'verify'
|
||||||
ref: '${{ github.event.inputs.ref }}'
|
ref: '${{ github.event.inputs.ref }}'
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -34,13 +35,13 @@ runs:
|
|||||||
timeout_seconds: 900
|
timeout_seconds: 900
|
||||||
retry_wait_seconds: 30
|
retry_wait_seconds: 30
|
||||||
max_attempts: 10
|
max_attempts: 10
|
||||||
command: |-
|
command: 'cd ./verify && pkg="${{ inputs.npm-package }}" && npm install --prefer-online --no-cache -g "$pkg"'
|
||||||
npm install --prefer-online --no-cache -g ${{ inputs.npm-package }}
|
|
||||||
|
|
||||||
# This provides a very basic smoke test for Gemini CLI
|
# This provides a very basic smoke test for Gemini CLI
|
||||||
- name: 'Run Gemini CLI'
|
- name: 'Run Gemini CLI'
|
||||||
id: 'gemini_cli'
|
id: 'gemini_cli'
|
||||||
shell: 'bash'
|
shell: 'bash'
|
||||||
|
working-directory: './verify'
|
||||||
run: |-
|
run: |-
|
||||||
echo "gemini_version=$(gemini --version)" >> $GITHUB_OUTPUT
|
echo "gemini_version=$(gemini --version)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
@@ -48,6 +49,7 @@ runs:
|
|||||||
- name: 'Fail workflow if version does not match'
|
- name: 'Fail workflow if version does not match'
|
||||||
if: '${{ steps.gemini_cli.outputs.gemini_version != inputs.expected-version }}'
|
if: '${{ steps.gemini_cli.outputs.gemini_version != inputs.expected-version }}'
|
||||||
shell: 'bash'
|
shell: 'bash'
|
||||||
|
working-directory: './verify'
|
||||||
run: |-
|
run: |-
|
||||||
echo '❌ Got ${{ steps.gemini_cli.outputs.gemini_version }} from ${{ inputs.npm-package }}'
|
echo '❌ Got ${{ steps.gemini_cli.outputs.gemini_version }} from ${{ inputs.npm-package }}'
|
||||||
echo '❌ Expected Version ${{ inputs.expected-version }}'
|
echo '❌ Expected Version ${{ inputs.expected-version }}'
|
||||||
|
|||||||
@@ -26,6 +26,6 @@ jobs:
|
|||||||
- name: 'Verify release'
|
- name: 'Verify release'
|
||||||
uses: './.github/actions/verify-release'
|
uses: './.github/actions/verify-release'
|
||||||
with:
|
with:
|
||||||
npm-package: '${github.event.inputs.npm-package}'
|
npm-package: '${{github.event.inputs.npm-package}}'
|
||||||
expected-version: '${github.event.inputs.version}'
|
expected-version: '${{github.event.inputs.version}}'
|
||||||
ref: '${github.event.inputs.ref}'
|
ref: '${{github.event.inputs.ref}}'
|
||||||
|
|||||||
Reference in New Issue
Block a user