1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-07 05:44:28 -04:00
v2fly/.github/workflows/linter.yml

33 lines
613 B
YAML
Raw Normal View History

2020-09-09 06:19:49 -04:00
name: Linter
on:
push:
branches:
- master
- v*
2020-09-16 10:00:52 -04:00
paths:
- "**/*.go"
pull_request:
2020-08-24 12:04:31 -04:00
types: [opened, synchronize, reopened]
2020-09-16 10:00:52 -04:00
paths:
- "**/*.go"
jobs:
2020-08-24 04:09:51 -04:00
lint:
runs-on: ubuntu-latest
steps:
2020-08-30 13:09:45 -04:00
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
2020-09-09 06:19:49 -04:00
go-version: ^1.15
2020-08-30 13:09:45 -04:00
- name: Checkout codebase
uses: actions/checkout@v2
2020-09-09 05:50:36 -04:00
- name: golangci-lint
uses: golangci/golangci-lint-action@v2.4.0
2020-09-09 05:50:36 -04:00
with:
version: v1.31
args: --config=.github/linters/.golangci.yml
only-new-issues: true