Skip to content

docs: 补充微信公众号配置流程与内容投递说明 #7

docs: 补充微信公众号配置流程与内容投递说明

docs: 补充微信公众号配置流程与内容投递说明 #7

Workflow file for this run

name: test
on:
push:
branches: [master, main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
# 从 go.mod 读取版本,避免与 go 指令漂移。
go-version-file: go.mod
cache: true
- name: gofmt check
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "These files need gofmt:"
gofmt -l .
exit 1
fi
- name: go vet
run: go vet ./...
- name: go test
run: go test -race ./...