feat: 新增部分方法 用于兼容 go-cqhttp 操作 bufferPool (#166) #574
This file contains hidden or 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' | |
| - '**.yml' | |
| pull_request: | |
| paths: | |
| - '**.go' | |
| - 'go.mod' | |
| - '**.yml' | |
| name: Test & Lint | |
| env: | |
| GO111MODULE: on | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| go-version: [ '1.23', '1.24' ] | |
| steps: | |
| - name: Code | |
| uses: actions/checkout@v4 | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| cache: false | |
| - run: go get | |
| - run: go test -v -race ./... | |
| lint: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| go-version: [ '1.23', '1.24' ] | |
| steps: | |
| - name: Code | |
| uses: actions/checkout@v4 | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| cache: false | |
| - run: go get | |
| - name: Go vet | |
| run: go vet ./... | |
| - name: GolangCI-Lint | |
| uses: golangci/golangci-lint-action@v8 | |
| with: | |
| version: v2.2.1 | |
| args: '--timeout 9999s' | |
| only-new-issues: ${{ github.event.name == 'pull_request' }} | |
| skip-save-cache: true |