mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-02-11 07:35:05 -05:00
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/cache](https://redirect.github.com/actions/cache) ([changelog](9255dc7a25..8b402f58fb)) | action | digest | `9255dc7` → `8b402f5` | | [actions/checkout](https://redirect.github.com/actions/checkout) | action | patch | `v6.0.1` → `v6.0.2` | | [actions/setup-go](https://redirect.github.com/actions/setup-go) | action | minor | `v6.1.0` → `v6.2.0` | | [actions/setup-node](https://redirect.github.com/actions/setup-node) ([changelog](395ad32622..6044e13b5d)) | action | digest | `395ad32` → `6044e13` | --- ### Release Notes <details> <summary>actions/checkout (actions/checkout)</summary> ### [`v6.0.2`](https://redirect.github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v602) [Compare Source](https://redirect.github.com/actions/checkout/compare/v6.0.1...v6.0.2) - Fix tag handling: preserve annotations and explicit fetch-tags by [@​ericsciple](https://redirect.github.com/ericsciple) in [#​2356](https://redirect.github.com/actions/checkout/pull/2356) </details> <details> <summary>actions/setup-go (actions/setup-go)</summary> ### [`v6.2.0`](https://redirect.github.com/actions/setup-go/releases/tag/v6.2.0) [Compare Source](https://redirect.github.com/actions/setup-go/compare/v6.1.0...v6.2.0) ##### What's Changed ##### Enhancements - Example for restore-only cache in documentation by [@​aparnajyothi-y](https://redirect.github.com/aparnajyothi-y) in [#​696](https://redirect.github.com/actions/setup-go/pull/696) - Update Node.js version in action.yml by [@​ccoVeille](https://redirect.github.com/ccoVeille) in [#​691](https://redirect.github.com/actions/setup-go/pull/691) - Documentation update of actions/checkout by [@​deining](https://redirect.github.com/deining) in [#​683](https://redirect.github.com/actions/setup-go/pull/683) ##### Dependency updates - Upgrade js-yaml from 3.14.1 to 3.14.2 by [@​dependabot](https://redirect.github.com/dependabot) in [#​682](https://redirect.github.com/actions/setup-go/pull/682) - Upgrade [@​actions/cache](https://redirect.github.com/actions/cache) to v5 by [@​salmanmkc](https://redirect.github.com/salmanmkc) in [#​695](https://redirect.github.com/actions/setup-go/pull/695) - Upgrade actions/checkout from 5 to 6 by [@​dependabot](https://redirect.github.com/dependabot) in [#​686](https://redirect.github.com/actions/setup-go/pull/686) - Upgrade qs from 6.14.0 to 6.14.1 by [@​dependabot](https://redirect.github.com/dependabot) in [#​703](https://redirect.github.com/actions/setup-go/pull/703) ##### New Contributors - [@​ccoVeille](https://redirect.github.com/ccoVeille) made their first contribution in [#​691](https://redirect.github.com/actions/setup-go/pull/691) - [@​deining](https://redirect.github.com/deining) made their first contribution in [#​683](https://redirect.github.com/actions/setup-go/pull/683) **Full Changelog**: <https://github.com/actions/setup-go/compare/v6...v6.2.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/googleapis/genai-toolbox). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi43NC41IiwidXBkYXRlZEluVmVyIjoiNDIuOTIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: Averi Kitsch <akitsch@google.com>
73 lines
2.6 KiB
YAML
73 lines
2.6 KiB
YAML
# Copyright 2024 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
|
|
#
|
|
# http://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: lint
|
|
on:
|
|
pull_request:
|
|
pull_request_target:
|
|
types: [labeled]
|
|
|
|
# Declare default permissions as read only.
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
lint:
|
|
if: "${{ github.event.action != 'labeled' || github.event.label.name == 'tests: run' }}"
|
|
name: lint
|
|
runs-on: ubuntu-latest
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
permissions:
|
|
contents: 'read'
|
|
issues: 'write'
|
|
pull-requests: 'write'
|
|
steps:
|
|
- name: Remove PR Label
|
|
if: "${{ github.event.action == 'labeled' && github.event.label.name == 'tests: run' }}"
|
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
script: |
|
|
try {
|
|
await github.rest.issues.removeLabel({
|
|
name: 'tests: run',
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.payload.pull_request.number
|
|
});
|
|
} catch (e) {
|
|
console.log('Failed to remove label. Another job may have already removed it!');
|
|
}
|
|
- name: Setup Go
|
|
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
|
|
with:
|
|
go-version: "1.25"
|
|
- name: Checkout code
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: >
|
|
Verify go mod tidy. If you're reading this and the check has
|
|
failed, run `goimports -w . && go mod tidy && golangci-lint run`
|
|
run: |
|
|
go mod tidy && git diff --exit-code
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
|
|
with:
|
|
version: latest
|
|
args: --timeout 10m
|