-
-
Notifications
You must be signed in to change notification settings - Fork 158
32 lines (26 loc) · 897 Bytes
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Go
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -race $(go list ./... | grep -v /examples/ | grep -v github.com/gotomicro/ego/cmd |grep -v github.com/gotomicro/ego/internal/test/errcode) -coverprofile=coverage.txt -covermode=atomic
- name: CodeCov
uses: codecov/codecov-action@v1
with:
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: ./coverage.txt
flags: unittests # optional
name: codecov-umbrella # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)