Files
v2fly/.github/workflows/linter.yml
T
c1523c4578 Chore: bump actions/checkout from 6 to 7 (#3760)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-20 20:31:02 +08:00

36 lines
756 B
YAML

name: Linter
on:
push:
branches:
- master
- v*
paths:
- "**/*.go"
- ".github/workflows/linter.yml"
pull_request:
types: [opened, synchronize, reopened]
paths:
- "**/*.go"
- ".github/workflows/linter.yml"
jobs:
lint:
if: github.repository == 'v2fly/v2ray-core'
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: ./go.mod
cache-dependency-path: ./go.sum
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
args: --config=.github/linters/.golangci.yml
only-new-issues: true