github.com/ipfans/trojan-go@v0.11.0/.github/workflows/linter.yml (about) 1 name: Linter 2 3 on: 4 push: 5 branches: 6 - master 7 paths: 8 - "**/*.go" 9 - ".github/workflows/linter.yml" 10 - ".github/linters/.golangci.yml" 11 pull_request: 12 types: [opened, synchronize, reopened] 13 branches: 14 - master 15 paths: 16 - "**/*.go" 17 - ".github/workflows/linter.yml" 18 - ".github/linters/.golangci.yml" 19 20 jobs: 21 lint: 22 runs-on: ubuntu-latest 23 steps: 24 - name: Checkout codebase 25 uses: actions/checkout@v2 26 27 - name: golangci-lint 28 uses: golangci/golangci-lint-action@v2 29 with: 30 version: latest 31 args: --config=.github/linters/.golangci.yml 32 only-new-issues: true