From 7fc35f35cbd29488defaa0820d9f807171a2758f Mon Sep 17 00:00:00 2001 From: Gabe Date: Fri, 9 Sep 2022 16:38:16 -0700 Subject: [PATCH 1/2] Basic codecov config (#187) * codecov excludes * path exclusion move codecov file move codecov --- README.md | 1 + codecov.yml | 12 ++++++++++++ did/key.go | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/README.md b/README.md index 81c5199f..f66afe81 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ [![license Apache 2](https://img.shields.io/badge/license-Apache%202-black)](https://github.com/TBD54566975/ssi-sdk/blob/main/LICENSE) [![issues](https://img.shields.io/github/issues/TBD54566975/ssi-sdk)](https://github.com/TBD54566975/ssi-sdk/issues) ![ssi-sdk-ci status](https://github.com/TBD54566975/ssi-sdk/workflows/ssi-sdk-ci/badge.svg?branch=main&event=push) +[![codecov](https://codecov.io/gh/TBD54566975/ssi-sdk/branch/main/graph/badge.svg?token=8SD0TO9Z9E)](https://codecov.io/gh/TBD54566975/ssi-sdk) # ssi-sdk diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..985ab8b6 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,12 @@ +codecov: + precision: 2 + round: nearest + range: "80...100" + require_ci_to_pass: yes + notify: + after_n_builds: 2 + wait_for_ci: yes + ignore: + - doc/**/* + - util/**/* + - example/**/* \ No newline at end of file diff --git a/did/key.go b/did/key.go index c15844af..02e515ef 100644 --- a/did/key.go +++ b/did/key.go @@ -144,7 +144,7 @@ func (d DIDKey) Decode() ([]byte, cryptosuite.LDKeyType, error) { } } -// Expand turns the DID key into a complaint DID Document +// Expand turns the DID key into a compliant DID Document func (d DIDKey) Expand() (*DIDDocument, error) { keyReference := "#" + d.Parse() id := string(d) From 31ecdb7997214a3ab3744d534435a58f38604c84 Mon Sep 17 00:00:00 2001 From: gabe Date: Fri, 9 Sep 2022 16:44:00 -0700 Subject: [PATCH 2/2] remove codecov --- .github/codecov.yml | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 .github/codecov.yml diff --git a/.github/codecov.yml b/.github/codecov.yml deleted file mode 100644 index 985ab8b6..00000000 --- a/.github/codecov.yml +++ /dev/null @@ -1,12 +0,0 @@ -codecov: - precision: 2 - round: nearest - range: "80...100" - require_ci_to_pass: yes - notify: - after_n_builds: 2 - wait_for_ci: yes - ignore: - - doc/**/* - - util/**/* - - example/**/* \ No newline at end of file