ci(release test):restore other ci

This commit is contained in:
luoliwoshang
2025-09-04 17:36:36 +08:00
parent 00dbc91745
commit 5a602830a6
5 changed files with 574 additions and 0 deletions

30
.github/workflows/fmt.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Format Check
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Go
uses: ./.github/actions/setup-go
with:
go-version: "1.24.2"
- name: Check formatting
run: |
for dir in . runtime; do
pushd $dir
if [ -n "$(go fmt ./... | grep -v xgo_autogen.go)" ]; then
echo "Some files are not properly formatted. Please run 'go fmt ./...'"
exit 1
fi
popd
done
echo "All files are properly formatted."