feat: 获取访问用户身份 微信客服 接收消息和事件、发送消息、发送欢迎语等事件响应消息 fix: 删除微信客服账号的接口定义错误问题 #311
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: Go | |
on: | |
push: | |
branches: | |
- develop | |
- master | |
- staging | |
- trying | |
pull_request: | |
branches: | |
- develop | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '1.17', 'oldstable', 'stable' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Build | |
run: go build -v ./... | |
- name: Lint | |
uses: golangci/[email protected] | |
with: | |
version: v1.55 | |
- name: Test | |
run: go test -v ./... | |
# Added to summarize the matrix (otherwise we would need to list every single | |
# job in bors.toml) | |
# thanks https://forum.bors.tech/t/bors-with-github-workflows/426/4 | |
tests-result: | |
name: Tests result | |
if: always() | |
needs: | |
- build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Mark the job as a success | |
if: needs.build.result == 'success' | |
run: exit 0 | |
- name: Mark the job as a failure | |
if: needs.build.result == 'failure' | |
run: exit 1 |