mirror of
https://gitee.com/johng/gf.git
synced 2024-11-30 11:18:02 +08:00
Merge branch 'master' of https://github.com/gogf/gf
This commit is contained in:
commit
066b1026a2
22
.github/workflows/gf.yml
vendored
22
.github/workflows/gf.yml
vendored
@ -122,16 +122,16 @@ jobs:
|
||||
cd cmd/gf
|
||||
go mod tidy
|
||||
go build ./...
|
||||
GOARCH=386 go test ./... || exit 1
|
||||
GOARCH=amd64 go test ./... -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./...,github.com/gogf/gf/... || exit 1
|
||||
GOARCH=386 go test -v ./... || exit 1
|
||||
GOARCH=amd64 go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./...,github.com/gogf/gf/... || exit 1
|
||||
|
||||
- name: Example Build & Test
|
||||
run: |
|
||||
cd example
|
||||
go mod tidy
|
||||
go build ./...
|
||||
GOARCH=386 go test ./... || exit 1
|
||||
GOARCH=amd64 go test ./... -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./...,github.com/gogf/gf/... || exit 1
|
||||
GOARCH=386 go test -v ./... || exit 1
|
||||
GOARCH=amd64 go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./...,github.com/gogf/gf/... || exit 1
|
||||
|
||||
- name: Contrib Build & Test
|
||||
run: |
|
||||
@ -145,8 +145,8 @@ jobs:
|
||||
cd $dirpath
|
||||
go mod tidy
|
||||
go build ./...
|
||||
GOARCH=386 go test ./... || exit 1
|
||||
GOARCH=amd64 go test ./... -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./...,github.com/gogf/gf/... || exit 1
|
||||
GOARCH=386 go test -v ./... || exit 1
|
||||
GOARCH=amd64 go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./...,github.com/gogf/gf/... || exit 1
|
||||
cd -
|
||||
done
|
||||
|
||||
@ -156,16 +156,6 @@ jobs:
|
||||
GOARCH=386 go test -v ./... || exit 1
|
||||
GOARCH=amd64 go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./...,github.com/gogf/gf/... || exit 1
|
||||
|
||||
# - name: Merge Coverage
|
||||
# run: |
|
||||
# for file in `find . -name coverage.txt`; do
|
||||
# # In case of recursively incremental selffile in root directory.
|
||||
# if [ "./coverage.txt" = $file ]; then
|
||||
# continue 1
|
||||
# fi
|
||||
# cat $file >> coverage.txt
|
||||
# done
|
||||
|
||||
- name: Report Coverage
|
||||
uses: codecov/codecov-action@v2
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user