From 2b4abe5f9283770029710659eba18a5437e9bd2d Mon Sep 17 00:00:00 2001 From: Woosang Son Date: Tue, 11 May 2021 16:58:41 +0900 Subject: [PATCH] chore: bump codecov-action up from 1.2.1 to 1.5.0 (#181) * chore: codecov no base report * chore: add meaningless modification to enable codecov action --- .github/workflows/test.yml | 2 +- codecov.yml | 26 +++----------------------- simapp/simd/cmd/root.go | 2 +- 3 files changed, 5 insertions(+), 25 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1507a4c76e..c9bca1ad3c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -192,7 +192,7 @@ jobs: sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt done if: env.GIT_DIFF - - uses: codecov/codecov-action@v1.2.1 + - uses: codecov/codecov-action@v1.5.0 with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.txt diff --git a/codecov.yml b/codecov.yml index 3b69fbc39b..2ca02deb38 100644 --- a/codecov.yml +++ b/codecov.yml @@ -10,24 +10,14 @@ codecov: comment: layout: "reach,diff,flags,tree" behavior: default # update if exists else create new - require_changes: no + require_changes: true coverage: status: project: default: - # basic target: 20 threshold: 1% # allow this much decrease on project - base: auto - # advanced - branches: null - if_no_uploads: error - if_not_found: success - if_ci_failed: error - only_pulls: false - flags: null - paths: null app: target: 70% flags: @@ -58,14 +48,6 @@ flags: - "client/" - "x/**/client/" -parsers: - gcov: - branch_detection: - conditional: yes - loop: yes - method: no - macro: no - ignore: - "docs" - "*.md" @@ -75,12 +57,10 @@ ignore: - "*.sh" - "*.png" - "*_test.go" + - "scripts/" - "x/**/test_common.go" - "*_cmd.go" - - "contrib/**/*" - - "client/rpc/**/*_wrapper.go" - - "client/rpc/**/*_alias.go" - - "client/rpc/mock/*.go" + - "contrib" - "statik.go" - "root.go" - "x/**/module.go" diff --git a/simapp/simd/cmd/root.go b/simapp/simd/cmd/root.go index 691d3a9d02..90c139993b 100644 --- a/simapp/simd/cmd/root.go +++ b/simapp/simd/cmd/root.go @@ -194,8 +194,8 @@ func (a appCreator) newApp(logger log.Logger, db tmdb.DB, traceStore io.Writer, baseapp.SetMinRetainBlocks(cast.ToUint64(appOpts.Get(server.FlagMinRetainBlocks))), baseapp.SetInterBlockCache(cache), baseapp.SetIAVLCacheManager(cast.ToInt(appOpts.Get(server.FlagIAVLCacheSize))), - baseapp.SetTrace(cast.ToBool(appOpts.Get(server.FlagTrace))), baseapp.SetIndexEvents(cast.ToStringSlice(appOpts.Get(server.FlagIndexEvents))), + baseapp.SetTrace(cast.ToBool(appOpts.Get(server.FlagTrace))), baseapp.SetSnapshotStore(snapshotStore), baseapp.SetSnapshotInterval(cast.ToUint64(appOpts.Get(server.FlagStateSyncSnapshotInterval))), baseapp.SetSnapshotKeepRecent(cast.ToUint32(appOpts.Get(server.FlagStateSyncSnapshotKeepRecent))),