File tree 2 files changed +13
-15
lines changed 2 files changed +13
-15
lines changed Original file line number Diff line number Diff line change 22
22
with :
23
23
go-version : ' 1.17' # The Go version to download (if necessary) and use.
24
24
25
- # - uses: actions/cache@v2
26
- # with:
27
- # path: ~/go/pkg/mod
28
- # key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
29
- # restore-keys: |
30
- # ${{ runner.os }}-go-
31
-
32
25
- name : Clone blobber
33
26
uses : actions/checkout@v2
34
27
@@ -53,21 +46,21 @@ jobs:
53
46
with :
54
47
go-version : ' 1.17' # The Go version to download (if necessary) and use.
55
48
56
- # - uses: actions/cache@v2
57
- # with:
58
- # path: ~/go/pkg/mod
59
- # key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
60
- # restore-keys: |
61
- # ${{ runner.os }}-go-
62
-
63
49
- name : Clone blobber
64
50
uses : actions/checkout@v2
65
51
66
52
- name : Run tests
67
53
run : |
68
54
cd $GITHUB_WORKSPACE/code/go/0chain.net/
69
55
CGO_ENABLED=1 go test -tags bn256 -race -coverprofile=coverage.txt -covermode=atomic ./...
70
-
56
+ - name : Upload coverage to Codecov
57
+ uses : codecov/codecov-action@v2
58
+ with :
59
+ # fail_ci_if_error: true
60
+ files : ./code/go/0chain.net/coverage.txt
61
+ flags : Unit-Tests
62
+ verbose : true
63
+
71
64
integration-tests :
72
65
name : Integration Tests
73
66
runs-on : [ubuntu-20.04]
Original file line number Diff line number Diff line change 1
1
2
+ [ ![ Build] ( https://github.com/0chain/blobber/actions/workflows/build-&-publish-docker-image.yml/badge.svg )] ( https://github.com/0chain/blobber/actions/workflows/build-&-publish-docker-image.yml )
3
+ [ ![ Test] ( https://github.com/0chain/blobber/actions/workflows/tests.yml/badge.svg )] ( https://github.com/0chain/blobber/actions/workflows/tests.yml )
4
+ [ ![ GoDoc] ( https://godoc.org/github.com/0chain/blobber?status.png )] ( https://godoc.org/github.com/0chain/blobber )
5
+ [ ![ codecov] ( https://codecov.io/gh/0chain/blobber/branch/main/graph/badge.svg )] ( https://codecov.io/gh/0chain/blobber )
6
+
2
7
# Blobber Setup
3
8
This readme provide instructions on how to run blobber locally
4
9
You can’t perform that action at this time.
0 commit comments