mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-01 06:32:48 -07:00
1a1cea1523
This PR focuses on reducing GitHub Actions costs by optimizing the CI test matrix.
### Summary of Changes
1. **CI Matrix Optimization**: Reduced the `test_mac` matrix in `Testing: CI` to only run on Node.js 20.x. Node.js 22.x and 24.x are still covered by the `test_linux` matrix.
- **Reason**: macOS runners (especially `macos-latest-large`) are significantly more expensive than Linux runners.
- **Impact**: Expected to reduce Mac runner usage by approximately 66% in the CI pipeline, leading to a significant reduction in overall Actions spend.
Other workflow optimizations previously included in this PR (Pulse and Brain) have been reverted to keep the scope focused on CI matrix changes.
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
name: '🔄 Gemini CLI Bot: Pulse'
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '*/30 * * * *' # Every 30 minutes
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: '${{ github.workflow }}-${{ github.ref }}'
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: 'write'
|
|
issues: 'write'
|
|
pull-requests: 'write'
|
|
|
|
jobs:
|
|
pulse:
|
|
name: 'Pulse (Reflex Layer)'
|
|
runs-on: 'ubuntu-latest'
|
|
if: "github.repository == 'google-gemini/gemini-cli'"
|
|
steps:
|
|
- name: 'Checkout'
|
|
uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' # ratchet:actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: 'Setup Node.js'
|
|
uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'npm'
|
|
|
|
- name: 'Install dependencies'
|
|
run: 'npm ci'
|
|
|
|
- name: 'Run Reflex Processes'
|
|
env:
|
|
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
|
run: |
|
|
if [ -d "tools/gemini-cli-bot/reflexes/scripts" ] && [ "$(ls -A tools/gemini-cli-bot/reflexes/scripts)" ]; then
|
|
for script in tools/gemini-cli-bot/reflexes/scripts/*.ts; do
|
|
echo "Running reflex script: $script"
|
|
npx tsx "$script"
|
|
done
|
|
else
|
|
echo "No reflex scripts found."
|
|
fi
|