Skip to content

chore(deps): update all non-major dependencies #1475

chore(deps): update all non-major dependencies

chore(deps): update all non-major dependencies #1475

Workflow file for this run

# 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
#
# 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:
remove-label:
if: "${{ github.event.action == 'labeled' && github.event.label.name == 'tests: run' }}"
runs-on: ubuntu-latest
permissions:
issues: 'write'
pull-requests: 'write'
steps:
- name: Remove PR Label
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.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!');
}
lint:
if: "${{ github.event.action != 'labeled' || github.event.label.name == 'tests: run' }}"
name: lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
module: [core, tbadk, tbgenkit]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.module }}
cancel-in-progress: true
permissions:
contents: 'read'
steps:
- name: Setup Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: "1.25.0"
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
persist-credentials: false
- name: Link Local Modules & Tidy
working-directory: ${{ matrix.module }}
run: |
# Dynamically point wrappers to the local core module so unpublished changes are visible in a single PR
if [ "${{ matrix.module }}" != "core" ]; then
go mod edit -replace github.com/googleapis/mcp-toolbox-sdk-go/core=../core
fi
go mod tidy
- name: golangci-lint
uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
with:
version: latest
args: --timeout 3m
working-directory: ${{ matrix.module }}