Generate alert instead of panic when encountering incorrect listen on… #2581
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linter | |
on: | |
push: | |
branches: | |
- master | |
- v* | |
paths: | |
- "**/*.go" | |
- ".github/workflows/linter.yml" | |
pull_request: | |
types: [opened, synchronize, reopened] | |
paths: | |
- "**/*.go" | |
- ".github/workflows/linter.yml" | |
jobs: | |
lint: | |
if: github.repository == 'v2fly/v2ray-core' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ^1.21 | |
- name: Checkout codebase | |
uses: actions/checkout@v3 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: latest | |
args: --config=.github/linters/.golangci.yml | |
only-new-issues: true |