Skip to content

build(deps): Bump golang.org/x/sync from 0.20.0 to 0.21.0 in /tools (… #6054

build(deps): Bump golang.org/x/sync from 0.20.0 to 0.21.0 in /tools (…

build(deps): Bump golang.org/x/sync from 0.20.0 to 0.21.0 in /tools (… #6054

Workflow file for this run

on: [push, pull_request]
name: linter
permissions:
contents: read
jobs:
check-generated:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: stable
cache-dependency-path: "**/go.sum"
- name: Check generated code
run: ./script/generate.sh --check
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: stable
cache-dependency-path: "**/go.sum"
- uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
with:
version: v2.12.2 # sync with version in .custom-gcl.yml
experimental: "automatic-module-directories"
check-openapi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: stable
cache-dependency-path: "**/go.sum"
- name: Check OpenAPI
run: ./script/metadata.sh update-openapi --validate
env:
CHECK_GITHUB_OPENAPI: 1
GITHUB_TOKEN: ${{ github.token }}