feat: 重定向输出panic日志到panic.log,并增加用户友好的日志模块提示。 (#1067) #2463
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
on: | |
push: | |
paths: | |
- '**.go' | |
- 'go.mod' | |
- '.github/workflows/test_and_lint.yml' | |
pull_request: | |
paths: | |
- '**.go' | |
- 'go.mod' | |
- '.github/workflows/test_and_lint.yml' | |
name: Test & Lint | |
jobs: | |
test-and-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.20' | |
cache: false | |
- run: go get | |
- run: go generate ./... | |
- run: go test -v ./... | |
- run: go vet ./... | |
- name: GolangCI-Lint | |
uses: golangci/golangci-lint-action@v3 | |
if: github.event.name == 'pull_request' | |
with: | |
version: 'v1.55.2' | |
args: '--timeout 9999s' | |
only-new-issues: true | |
skip-pkg-cache: true | |
skip-build-cache: true | |
- name: GolangCI-Lint | |
uses: golangci/golangci-lint-action@v3 | |
if: github.event.name != 'pull_request' | |
with: | |
version: 'v1.55.2' | |
args: '--timeout 9999s' | |
skip-pkg-cache: true | |
skip-build-cache: true |