mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-25 02:37:53 -07:00
5fa0e5520f
Explicitly sets 'fetch-depth: 1' in the checkout step of the 'lint.yml' workflow. This makes the default behavior of fetching only the most recent commit explicit for clarity and consistency with other jobs that perform shallow clones.
31 lines
680 B
YAML
31 lines
680 B
YAML
# .github/workflows/lint.yml
|
|
name: 'Linting'
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
permissions:
|
|
contents: 'read'
|
|
|
|
jobs:
|
|
lint:
|
|
name: 'Lint All'
|
|
runs-on: 'ubuntu-latest'
|
|
steps:
|
|
- name: 'Checkout'
|
|
uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8' # ratchet:actions/checkout@v5
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- 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: 'Run linting'
|
|
run: 'npm run lint:all'
|