diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c1ee840d4..b45c6cdb2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,13 +22,6 @@ jobs: with: go-version: '1.17' # The Go version to download (if necessary) and use. - # - uses: actions/cache@v2 - # with: - # path: ~/go/pkg/mod - # key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - # restore-keys: | - # ${{ runner.os }}-go- - - name: Clone blobber uses: actions/checkout@v2 @@ -53,13 +46,6 @@ jobs: with: go-version: '1.17' # The Go version to download (if necessary) and use. - # - uses: actions/cache@v2 - # with: - # path: ~/go/pkg/mod - # key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - # restore-keys: | - # ${{ runner.os }}-go- - - name: Clone blobber uses: actions/checkout@v2 @@ -67,7 +53,14 @@ jobs: run: | cd $GITHUB_WORKSPACE/code/go/0chain.net/ CGO_ENABLED=1 go test -tags bn256 -race -coverprofile=coverage.txt -covermode=atomic ./... - + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v2 + with: + # fail_ci_if_error: true + files: ./code/go/0chain.net/coverage.txt + flags: Unit-Tests + verbose: true + integration-tests: name: Integration Tests runs-on: [ubuntu-20.04] diff --git a/README.md b/README.md index b1a6d9720..43d046c1f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,9 @@ +[![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) +[![Test](https://github.com/0chain/blobber/actions/workflows/tests.yml/badge.svg)](https://github.com/0chain/blobber/actions/workflows/tests.yml) +[![GoDoc](https://godoc.org/github.com/0chain/blobber?status.png)](https://godoc.org/github.com/0chain/blobber) +[![codecov](https://codecov.io/gh/0chain/blobber/branch/main/graph/badge.svg)](https://codecov.io/gh/0chain/blobber) + # Blobber Setup This readme provide instructions on how to run blobber locally