From b612c30a93c9f4eb0a57bda04282b0a094bb066f Mon Sep 17 00:00:00 2001 From: Twisha Bansal Date: Mon, 29 Sep 2025 15:44:24 +0530 Subject: [PATCH 1/3] chore: fix presubmit --- .github/workflows/presubmit-tests.yml | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/presubmit-tests.yml diff --git a/.github/workflows/presubmit-tests.yml b/.github/workflows/presubmit-tests.yml new file mode 100644 index 0000000..edcb976 --- /dev/null +++ b/.github/workflows/presubmit-tests.yml @@ -0,0 +1,37 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +name: Presubmit Tests + +on: + pull_request: + branches: [ main ] + +jobs: + run-presubmit-tests: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 + + - name: Install Gemini CLI + run: npm install @google/gemini-cli + + - name: Install toolbox binary + run: | + VERSION=$(cat toolbox_version.txt) + curl -L -o toolbox https://storage.googleapis.com/genai-toolbox/v$VERSION/linux/amd64/toolbox + chmod +x toolbox + + - name: Install Extension + run: npx gemini extensions install --path=. \ No newline at end of file From a6c8f5b24dd7b91d13f1d3cd096f4ccc0635d06c Mon Sep 17 00:00:00 2001 From: Twisha Bansal Date: Mon, 29 Sep 2025 15:49:01 +0530 Subject: [PATCH 2/3] resolve conflict --- .github/workflows/presubmit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/presubmit-tests.yml b/.github/workflows/presubmit-tests.yml index edcb976..3c6307c 100644 --- a/.github/workflows/presubmit-tests.yml +++ b/.github/workflows/presubmit-tests.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 + uses: actions/checkout@v4 - name: Install Gemini CLI run: npm install @google/gemini-cli From 80124ffedc294d84f8a9ce7e307f2f35bcd93d0d Mon Sep 17 00:00:00 2001 From: Twisha Bansal Date: Mon, 29 Sep 2025 20:18:42 +0530 Subject: [PATCH 3/3] add yes pipe --- .github/workflows/presubmit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/presubmit-tests.yml b/.github/workflows/presubmit-tests.yml index 7c13b3d..bca3258 100644 --- a/.github/workflows/presubmit-tests.yml +++ b/.github/workflows/presubmit-tests.yml @@ -34,4 +34,4 @@ jobs: chmod +x toolbox - name: Install Extension - run: npx gemini extensions install --path=. + run: yes | npx gemini extensions install --path=. \ No newline at end of file