mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-08-20 03:14:16 -04:00
34 lines
661 B
YAML
34 lines
661 B
YAML
name: Linter
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- v*
|
|
paths:
|
|
- "**/*.go"
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
paths:
|
|
- "**/*.go"
|
|
|
|
jobs:
|
|
lint:
|
|
if: github.repository != 'v2ray/v2ray-core'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go 1.x
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ^1.15
|
|
|
|
- name: Checkout codebase
|
|
uses: actions/checkout@v2
|
|
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v2.3.0
|
|
with:
|
|
version: v1.31
|
|
args: --config=.github/linters/.golangci.yml
|
|
only-new-issues: true
|