From 062db38bde0b5fc296d077142682e4e28d203e76 Mon Sep 17 00:00:00 2001 From: Antonio Navarro Perez Date: Mon, 18 Sep 2023 11:31:19 +0200 Subject: [PATCH 1/3] chore: Fix codecov Split coverages by component. Signed-off-by: Antonio Navarro Perez --- .github/codecov.yml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/codecov.yml b/.github/codecov.yml index ba70a236dc9..c6e0afff2c3 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -23,18 +23,17 @@ coverage: default: target: auto -flags: - default_rules: - carryforward: true - tm2: - paths: - - tm2 - after_n_builds: 4 - gnovm: - paths: - - gnovm - after_n_builds: 9 - gno.land: - paths: - - gno.land - after_n_builds: 3 +component_management: + individual_components: + - component_id: tm2 + name: tm2 + paths: + - tm2 + - component_id: gnovm + name: gnovm + paths: + - gnovm + - component_id: gno.land + name: gno.land + paths: + - gno.land From c781cdb16806d1f1fb2a157ca129a1a2de04db66 Mon Sep 17 00:00:00 2001 From: Antonio Navarro Perez Date: Mon, 18 Sep 2023 11:46:45 +0200 Subject: [PATCH 2/3] test modification Signed-off-by: Antonio Navarro Perez --- gnovm/pkg/doc/dirs_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gnovm/pkg/doc/dirs_test.go b/gnovm/pkg/doc/dirs_test.go index 433b707c3a1..41f3409a08b 100644 --- a/gnovm/pkg/doc/dirs_test.go +++ b/gnovm/pkg/doc/dirs_test.go @@ -67,6 +67,7 @@ func tNewDirs(t *testing.T) (string, *bfsDirs) { // dependency lookup by dirs. old, ex := os.LookupEnv("GNO_HOME") os.Setenv("GNO_HOME", wdJoin(t, "testdata/dirsdep")) + t.Cleanup(func() { if ex { os.Setenv("GNO_HOME", old) From e85185e9420d83589301d99d0d3c29270bb6c7fe Mon Sep 17 00:00:00 2001 From: Antonio Navarro Perez Date: Mon, 18 Sep 2023 11:54:08 +0200 Subject: [PATCH 3/3] Add new layout Signed-off-by: Antonio Navarro Perez --- .github/codecov.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/codecov.yml b/.github/codecov.yml index c6e0afff2c3..fbc48d2d22b 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -7,6 +7,7 @@ ignore: - misc comment: + layout: "header, diff, flags, components" require_changes: true coverage: