github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/.github/workflows/linter.yml (about) 1 name: Linter 2 3 on: 4 push: 5 branches: [master] 6 paths: 7 - "**/*.go" 8 pull_request: 9 branches: [master] 10 types: [opened, synchronize, reopened] 11 paths: 12 - "**/*.go" 13 14 jobs: 15 lint: 16 if: github.repository != 'v2ray/v2ray-core' 17 runs-on: ubuntu-latest 18 steps: 19 - name: Set up Go 1.x 20 uses: actions/setup-go@v2 21 with: 22 go-version: ^1.15 23 24 - name: Checkout codebase 25 uses: actions/checkout@v2 26 27 - name: golangci-lint 28 uses: golangci/golangci-lint-action@v2.2.1 29 with: 30 version: v1.31 31 args: --config=.github/linters/.golangci.yml 32 only-new-issues: true