feat: 调整自动清理群聊的间隔时间单位,同时不清理从未发言过的群防止新加群被立即清理 #434
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
on: | |
push: | |
paths: | |
- '**.go' | |
- 'go.mod' | |
pull_request: | |
paths: | |
- '**.go' | |
- 'go.mod' | |
name: Test & Lint | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: stable | |
- run: go get | |
- run: go generate ./... | |
- run: go test -v -race ./... | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: stable | |
- run: go get | |
- run: go generate ./... | |
- name: Go vet | |
run: go vet ./... | |
- name: GolangCI-Lint | |
uses: golangci/golangci-lint-action@v3 | |
if: github.event.name == 'pull_request' | |
with: | |
go-version: '1.18' | |
version: 'v1.51.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.51.2' | |
args: '--timeout 9999s' |