fix: 修复启动时数据库迁移和回收导致的过长启动时间,并对log_items做了特殊处理。同时修复jsReload后插件默认关闭的问题 #153
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: Test & Lint | |
on: | |
push: | |
paths: | |
- '**.go' | |
- 'go.mod' | |
- 'test-and-lint.yml' | |
pull_request: | |
paths: | |
- '**.go' | |
- 'go.mod' | |
- 'test-and-lint.yml' | |
jobs: | |
test-and-lint: | |
name: Test & Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- run: go get | |
- run: go generate ./... | |
- run: go test -v -race ./... | |
- run: go vet ./... | |
- name: GolangCI-Lint | |
uses: golangci/golangci-lint-action@v6 | |
if: github.event_name != 'pull_request' | |
with: | |
version: 'v1.61.0' | |
args: '--timeout 9999s' |