mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-03 07:56:42 -05:00
6db130ff89
Bumps [github/super-linter](https://github.com/github/super-linter) from v3.9.4 to v3.10.0. - [Release notes](https://github.com/github/super-linter/releases) - [Commits](https://github.com/github/super-linter/compare/v3.9.4...9f3eb7d4545d595f24bb68b916b0184ae2ef9871) Signed-off-by: dependabot[bot] <support@github.com>
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: Linter
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go 1.x
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ^1.15
|
|
|
|
- name: Checkout codebase
|
|
uses: actions/checkout@v2
|
|
|
|
- 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.0
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
VALIDATE_ALL_CODEBASE: false
|
|
VALIDATE_BASH: false
|
|
VALIDATE_DOCKERFILE: false
|
|
VALIDATE_DOCKERFILE_HADOLINT: false
|
|
VALIDATE_GO: false
|
|
VALIDATE_JSON: false
|
|
VALIDATE_MD: false
|
|
VALIDATE_PROTOBUF: false
|
|
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v2
|
|
with:
|
|
version: v1.31
|
|
args: --config=.github/linters/.golangci.yml |