mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-13 21:07:00 -07:00
1a5742efec
Creates a new reusable workflow, 'lint.yml', to handle all linting operations. The main 'orchestrator.yml' is updated to use this new workflow. The dependency chain is now explicitly defined: 'lint' runs first, followed by 'build-and-publish' and 'ci' in parallel. The 'e2e' job remains dependent on 'build-and-publish'. This change also removes the now-unused 'version' input from 'ci.yml' and corrects the 'bundle_size' job to use 'npm ci'.
48 lines
915 B
YAML
48 lines
915 B
YAML
# .github/workflows/pr-checks.yml
|
|
name: 'Checks'
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- 'main'
|
|
- 'release/**'
|
|
merge_group:
|
|
|
|
permissions:
|
|
contents: 'read'
|
|
packages: 'write'
|
|
pull-requests: 'write'
|
|
security-events: 'write'
|
|
checks: 'write'
|
|
statuses: 'write'
|
|
actions: 'read'
|
|
attestations: 'read'
|
|
deployments: 'read'
|
|
discussions: 'read'
|
|
issues: 'read'
|
|
pages: 'read'
|
|
repository-projects: 'read'
|
|
id-token: 'write'
|
|
|
|
jobs:
|
|
lint:
|
|
name: 'Lint'
|
|
uses: './.github/workflows/lint.yml'
|
|
|
|
build-and-publish:
|
|
name: 'Build and Publish CI Bundle'
|
|
needs: 'lint'
|
|
uses: './.github/workflows/build-and-publish.yml'
|
|
|
|
ci:
|
|
name: 'CI Checks'
|
|
needs: 'lint'
|
|
uses: './.github/workflows/ci.yml'
|
|
|
|
e2e:
|
|
name: 'E2E Checks'
|
|
needs: 'build-and-publish'
|
|
uses: './.github/workflows/e2e.yml'
|
|
with:
|
|
version: '${{ needs.build-and-publish.outputs.version }}'
|