mirror of
https://gitee.com/johng/gf
synced 2026-06-08 02:27:42 +08:00
refract(database/gdb): remove Ctx function for DB and Model, add context.Context parameter for all Operation functions (#4249)
This commit is contained in:
4
.github/workflows/ci-main.yml
vendored
4
.github/workflows/ci-main.yml
vendored
@ -8,6 +8,7 @@ on:
|
||||
- master
|
||||
- develop
|
||||
- personal/**
|
||||
- feat/**
|
||||
- feature/**
|
||||
- enhance/**
|
||||
- fix/**
|
||||
@ -17,6 +18,7 @@ on:
|
||||
- master
|
||||
- develop
|
||||
- personal/**
|
||||
- feat/**
|
||||
- feature/**
|
||||
- enhance/**
|
||||
- fix/**
|
||||
@ -43,7 +45,7 @@ jobs:
|
||||
go-version: [ "1.22", "1.23" ]
|
||||
goarch: [ "386", "amd64" ]
|
||||
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Service containers to run with `code-test`
|
||||
services:
|
||||
|
||||
4
.github/workflows/scripts/ci-main.sh
vendored
4
.github/workflows/scripts/ci-main.sh
vendored
@ -55,8 +55,8 @@ for file in `find . -name go.mod`; do
|
||||
if [ "${coverage}" = "coverage" ]; then
|
||||
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
|
||||
if grep -q "/gogf/gf/.*/v3" go.mod; then
|
||||
sed -i "s/gogf\/gf\(\/.*\)\/v3/gogf\/gf\/v3\1/g" coverage.out
|
||||
fi
|
||||
else
|
||||
go test ./... -race || exit 1
|
||||
|
||||
@ -61,7 +61,7 @@ for file in `find ${workdir} -name go.mod`; do
|
||||
replacement="$relativePath"
|
||||
else
|
||||
# Extract the path after v2 and remove trailing version
|
||||
subpath=$(echo "$dep" | sed -E 's/github\.com\/gogf\/gf\/(contrib\/[^/]+\/[^/]+)\/v2.*/\1/')
|
||||
subpath=$(echo "$dep" | sed -E 's/github\.com\/gogf\/gf\/(contrib\/[^/]+\/[^/]+)\/v3.*/\1/')
|
||||
replacement="$relativePath/$subpath"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user