mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-15 00:49:15 -04:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
36 lines
756 B
YAML
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@v6
|
|
|
|
- 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
|