Files
gemini-cli/.github/actions/run-tests/action.yml
Tommaso Sciortino 03bd6876d2 Fix broken if (#9270)
2025-09-23 22:07:35 +00:00

32 lines
854 B
YAML

name: 'Run Tests'
description: 'Runs the preflight checks and integration tests.'
inputs:
force_skip_tests:
description: 'Whether to force skip the tests.'
required: false
type: 'boolean'
default: false
gemini_api_key:
description: 'The API key for running integration tests.'
required: true
working-directory:
description: 'The working directory to run the tests in.'
required: false
default: '.'
runs:
using: 'composite'
steps:
- name: 'Run Tests'
if: "${{ inputs.force_skip_tests != 'true' }}"
env:
GEMINI_API_KEY: '${{ inputs.gemini_api_key }}'
working-directory: '${{ inputs.working-directory }}'
run: |-
npm run build
npm run test:ci
npm run test:integration:sandbox:none
npm run test:integration:sandbox:docker
shell: 'bash'