v2fly/.github/workflows/linter.yml

36 lines
740 B
YAML
Raw Normal View History

2020-09-09 10:19:49 +00:00
name: Linter
on:
push:
branches:
- master
- v*
2020-09-16 14:00:52 +00:00
paths:
- "**/*.go"
- ".github/workflows/linter.yml"
pull_request:
2020-08-24 16:04:31 +00:00
types: [opened, synchronize, reopened]
2020-09-16 14:00:52 +00:00
paths:
- "**/*.go"
- ".github/workflows/linter.yml"
jobs:
2020-08-24 08:09:51 +00:00
lint:
if: github.repository == 'v2fly/v2ray-core'
runs-on: ubuntu-latest
steps:
2020-08-30 17:09:45 +00:00
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.17
2020-08-30 17:09:45 +00:00
- name: Checkout codebase
uses: actions/checkout@v2
2020-09-09 09:50:36 +00:00
- name: golangci-lint
uses: golangci/golangci-lint-action@v2.5.2
2020-09-09 09:50:36 +00:00
with:
version: latest
args: --config=.github/linters/.golangci.yml
only-new-issues: true