Performance Tests: Nightly #2
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: 'Performance Tests: Nightly' | |
| on: | |
| schedule: | |
| - cron: '0 3 * * *' # Runs at 3 AM every day | |
| workflow_dispatch: # Allow manual trigger | |
| permissions: | |
| contents: 'read' | |
| jobs: | |
| perf-test: | |
| name: 'Run Performance Usage Tests' | |
| runs-on: 'gemini-cli-ubuntu-16-core' | |
| if: "github.repository == 'google-gemini/gemini-cli'" | |
| steps: | |
| - name: 'Checkout' | |
| uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' # ratchet:actions/checkout@v5 | |
| with: | |
| persist-credentials: false | |
| - name: 'Set up Node.js' | |
| uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020' # ratchet:actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| - name: 'Install dependencies' | |
| run: 'npm ci' | |
| - name: 'Build project' | |
| run: 'npm run build' | |
| - name: 'Run Performance Tests' | |
| run: 'npm run test:perf' |