mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-14 05:17:18 -07:00
430e9c68d7
Creates a new reusable workflow, 'bundle-size.yml', to handle the bundle size check. This check is now run in a separate job in the main 'orchestrator.yml' workflow, parallel to the 'e2e' job. This optimizes the CI pipeline by allowing the E2E tests to start as soon as the bundle is published, without waiting for the size check to complete.
55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
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 }}'
|
|
|
|
bundle-size:
|
|
name: 'Bundle Size Check'
|
|
needs: 'build-and-publish'
|
|
uses: './.github/workflows/bundle-size.yml'
|
|
with:
|
|
version: '${{ needs.build-and-publish.outputs.version }}'
|