1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-17 18:06:15 -05:00
v2fly/.github/workflows/linter.yml

47 lines
1.2 KiB
YAML
Raw Normal View History

2020-09-09 06:19:49 -04:00
name: Linter
on:
push:
2020-08-24 04:09:51 -04:00
branches: [master]
pull_request:
2020-08-24 04:09:51 -04:00
branches: [master]
2020-08-24 12:04:31 -04:00
types: [opened, synchronize, reopened]
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-08-30 13:09:45 -04:00
- name: Cache go module
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Lint other files
if: ${{ always() }}
uses: github/super-linter@v3.10.1
env:
2020-08-30 13:09:45 -04:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020-06-27 08:50:41 -04:00
VALIDATE_ALL_CODEBASE: false
2020-08-30 13:09:45 -04:00
VALIDATE_BASH: false
VALIDATE_DOCKERFILE: false
VALIDATE_DOCKERFILE_HADOLINT: false
VALIDATE_GO: false
2020-06-27 08:50:41 -04:00
VALIDATE_JSON: false
2020-08-30 13:09:45 -04:00
VALIDATE_MD: false
VALIDATE_PROTOBUF: false
2020-09-09 05:50:36 -04:00
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.31
args: --config=.github/linters/.golangci.yml