mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
2
.github/workflows/build_and_test.sh
vendored
2
.github/workflows/build_and_test.sh
vendored
@ -40,8 +40,10 @@ for file in `find . -name go.mod`; do
|
||||
go mod tidy
|
||||
go build ./...
|
||||
go test ./... -race -coverprofile=coverage.out -covermode=atomic -coverpkg=./...,github.com/gogf/gf/... || exit 1
|
||||
|
||||
if grep -q "/gogf/gf/.*/v2" go.mod; then
|
||||
sed -i "s/gogf\/gf\(\/.*\)\/v2/gogf\/gf\/v2\1/g" coverage.out
|
||||
fi
|
||||
|
||||
cd -
|
||||
done
|
||||
4
.github/workflows/gf.yml
vendored
4
.github/workflows/gf.yml
vendored
@ -180,9 +180,7 @@ jobs:
|
||||
run: bash .github/workflows/before_script.sh
|
||||
|
||||
- name: Build & Test
|
||||
run: |
|
||||
GOARCH=${{ matrix.goarch }}
|
||||
bash .github/workflows/build_and_test.sh
|
||||
run: bash .github/workflows/build_and_test.sh
|
||||
|
||||
- name: Stop Redis Cluster Containers
|
||||
run: docker-compose -f ".github/workflows/redis/docker-compose.yml" down
|
||||
|
||||
Reference in New Issue
Block a user