add report && i386 test

This commit is contained in:
starliu
2021-07-21 00:02:15 +08:00
parent 6240c3d90b
commit b718aa88a2

View File

@ -2,7 +2,7 @@ name: Go
on:
push:
branches:
branches:
- master
- main
- develop
@ -11,7 +11,7 @@ on:
branches: [ master ]
env:
GF_DEBUG: 1
jobs:
code-test:
@ -74,5 +74,12 @@ jobs:
# - name: Build
# run: go build -v ./...
- name: Test
run: go test -v ./...
- name: 386 mode Test
run: GOARCH=386 go test -v ./... || exit 1
- name: amd64 mode Test
run: GOARCH=amd64 go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic
- name: report coverage
run: bash <(curl -s https://codecov.io/bash)