1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-02-20 23:47:21 -05:00
v2fly/.github/workflows/linter.yml

36 lines
736 B
YAML
Raw Normal View History

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