Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mcp-reverse-proxy (#575) #661

mcp-reverse-proxy (#575)

mcp-reverse-proxy (#575) #661

Workflow file for this run

name: Lint
on:
push:
branches:
- main
- version*
tags:
- lint*
- build*
pull_request:
env:
GOLANGCI_LINT_VERSION: ${{ vars.GOLANGCI_LINT_VERSION == '' && 'v2.5.0' || vars.GOLANGCI_LINT_VERSION }}
DEFAULT_STEP_TIMEOUT: ${{ vars.DEFAULT_STEP_TIMEOUT_MIN == '' && '20' || vars.DEFAULT_STEP_TIMEOUT_MIN }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Setup Go environment
uses: actions/[email protected]
with:
go-version: '1.23.0'
cache: false
- name: Check workflow files
uses: docker://rhysd/actionlint:1.6.23
with:
args: -color
- name: Run golangci-lint
uses: golangci/[email protected]
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
args: --timeout ${{ env.DEFAULT_STEP_TIMEOUT }}m