Skip to content

Commit dac2fd4

Browse files
committed
Add initial scaffolding
0 parents  commit dac2fd4

19 files changed

+3096
-0
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* @google-github-actions/maintainers @google-github-actions/run-gemini-cli-maintainers
2+
3+
.github/CODEOWNERS @google-github-actions/maintainers

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'npm'
4+
directory: '/'
5+
rebase-strategy: 'disabled'
6+
schedule:
7+
interval: 'daily'
8+
commit-message:
9+
prefix: 'security: '
10+
open-pull-requests-limit: 0 # only check security updates
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'Draft release'
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version_strategy:
7+
description: 'Version strategy: The strategy to used to update the version based on semantic versioning (more info at https://semver.org/).'
8+
required: true
9+
default: 'patch'
10+
type: 'choice'
11+
options:
12+
- 'major'
13+
- 'minor'
14+
- 'patch'
15+
16+
permissions:
17+
contents: 'read'
18+
pull-requests: 'write'
19+
20+
jobs:
21+
draft-release:
22+
uses: 'google-github-actions/.github/.github/workflows/draft-release.yml@v3' # ratchet:exclude
23+
with:
24+
version_strategy: '${{ github.event.inputs.version_strategy }}'
25+
secrets:
26+
ACTIONS_BOT_TOKEN: '${{ secrets.ACTIONS_BOT_TOKEN }}'

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'Publish immutable action version'
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types:
7+
- 'published'
8+
9+
permissions:
10+
contents: 'read'
11+
id-token: 'write'
12+
packages: 'write'
13+
14+
jobs:
15+
publish:
16+
runs-on: 'ubuntu-latest'
17+
18+
steps:
19+
- name: 'Checkout'
20+
uses: 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' # ratchet:actions/checkout@v4
21+
22+
- name: 'Publish'
23+
id: 'publish'
24+
uses: 'actions/publish-immutable-action@4bc8754ffc40f27910afb20287dbbbb675a4e978' # ratchet:actions/publish-immutable-action@v0.0.4
25+
with:
26+
github-token: '${{ secrets.GITHUB_TOKEN }}'

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'Release'
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- 'release/**/*'
8+
9+
permissions:
10+
contents: 'read'
11+
packages: 'write'
12+
13+
jobs:
14+
release:
15+
uses: 'google-github-actions/.github/.github/workflows/release.yml@v3' # ratchet:exclude
16+
secrets:
17+
ACTIONS_BOT_TOKEN: '${{ secrets.ACTIONS_BOT_TOKEN }}'

.github/workflows/test.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: 'Test'
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- 'release/**/*'
8+
pull_request:
9+
branches:
10+
- 'main'
11+
- 'release/**/*'
12+
workflow_dispatch:
13+
14+
concurrency:
15+
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
16+
cancel-in-progress: true
17+
18+
defaults:
19+
run:
20+
shell: 'bash'
21+
22+
permissions:
23+
contents: 'read'
24+
statuses: 'write'
25+
26+
jobs:
27+
unit:
28+
name: 'unit'
29+
runs-on: 'ubuntu-latest'
30+
permissions:
31+
contents: 'read'
32+
id-token: 'write'
33+
34+
steps:
35+
- uses: 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' # ratchet:actions/checkout@v4
36+
37+
- uses: 'actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
38+
with:
39+
node-version: '20.x'
40+
41+
- name: 'npm build'
42+
run: 'npm ci && npm run build'
43+
44+
- name: 'npm lint'
45+
run: 'npm run lint'
46+
47+
- uses: 'google-github-actions/auth@v2' # ratchet:exclude
48+
with:
49+
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}'
50+
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
51+
52+
- name: 'npm test'
53+
run: 'npm run test'

.gitignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
node_modules/
2+
runner/
3+
4+
# Rest of the file pulled from https://github.com/github/gitignore/blob/main/Node.gitignore
5+
# Logs
6+
logs
7+
*.log
8+
npm-debug.log*
9+
yarn-debug.log*
10+
yarn-error.log*
11+
lerna-debug.log*
12+
13+
# Diagnostic reports (https://nodejs.org/api/report.html)
14+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
15+
16+
# Runtime data
17+
pids
18+
*.pid
19+
*.seed
20+
*.pid.lock
21+
22+
# Directory for instrumented libs generated by jscoverage/JSCover
23+
lib-cov
24+
25+
# Coverage directory used by tools like istanbul
26+
coverage
27+
*.lcov
28+
29+
# TypeScript v1 declaration files
30+
typings/
31+
32+
# TypeScript cache
33+
*.tsbuildinfo
34+
35+
# Optional npm cache directory
36+
.npm
37+
38+
# Optional eslint cache
39+
.eslintcache
40+
41+
# Optional REPL history
42+
.node_repl_history
43+
44+
# Output of 'npm pack'
45+
*.tgz

.prettierrc.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
arrowParens: 'always',
3+
bracketSpacing: true,
4+
endOfLine: 'auto',
5+
jsxSingleQuote: true,
6+
printWidth: 100,
7+
quoteProps: 'consistent',
8+
semi: true,
9+
singleQuote: true,
10+
tabWidth: 2,
11+
trailingComma: 'all',
12+
useTabs: false,
13+
};

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Changelog
2+
3+
Changelogs for each release are located on the [releases page](https://github.com/google-github-actions/run-gemini-cli/releases).

0 commit comments

Comments
 (0)