多语言翻译

This commit is contained in:
yun
2026-09-20 22:20:16 +08:00
parent 4edb2d244e
commit 287fa9ed36
20 changed files with 1616 additions and 320 deletions
+37
View File
@@ -0,0 +1,37 @@
name: ci
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ["1.19.x", "stable"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: gofmt
run: |
unformatted="$(gofmt -l .)"
if [ -n "$unformatted" ]; then
echo "以下文件未格式化:"
echo "$unformatted"
exit 1
fi
- name: vet
run: go vet ./...
- name: test
run: go test -race -count=1 -coverprofile=coverage.out ./...
- name: build example
run: go build ./example