Skip to content

refactor: 重命名contentToEvent为Onebot11ContentToEvent,并更新相关调用 #109

refactor: 重命名contentToEvent为Onebot11ContentToEvent,并更新相关调用

refactor: 重命名contentToEvent为Onebot11ContentToEvent,并更新相关调用 #109

Workflow file for this run

name: ci
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
GO_VERSION: 1.24.x
GOLANGCI_LINT_VERSION: v2.0
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Get dependencies
run: go mod tidy
- name: Test
run: go test $(go list ./...)
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Golangci-lint
uses: golangci/golangci-lint-action@v7
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}