From 3cf18ee48eca8b97f6e100fdb411042283cc1a12 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Fri, 9 Apr 2021 22:14:15 +0100 Subject: [PATCH 1/5] Create coverage.yml --- .github/workflows/coverage.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 000000000..67974d512 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,26 @@ +name: CI + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: denolib/setup-deno@v2 + with: + deno-version: v1.8 + - name: Create coverage files + run: deno test --unstable --coverage=coverage # create coverage files + - name: Create coverage report + run: deno --unstable coverage ./coverage --lcov > coverage.lcov # create coverage report + - name: Collect coverage + uses: codecov/codecov-action@v1.0.10 # upload the report on Codecov + with: + file: ./coverage.lcov From 637bfa9b2ec642feddee8e7c57e88402e5d4de85 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Fri, 9 Apr 2021 22:15:30 +0100 Subject: [PATCH 2/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 468a2bc04..4b55046fa 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Discordeno follows [Semantic Versioning](https://semver.org/) [![Discord](https://img.shields.io/discord/785384884197392384?color=7289da&logo=discord&logoColor=dark)](https://discord.com/invite/5vBgXk3UcZ) ![Lint](https://github.com/discordeno/discordeno/workflows/Lint/badge.svg) ![Test](https://github.com/discordeno/discordeno/workflows/Test/badge.svg) - +[![Coverage](https://img.shields.io/github/workflow/status/discordeno/discordeno/Coverage?style=flat-square)](https://github.com/discordeno/discordeno/actions) ## Features - **Secure & stable**: Discordeno is actively maintained to ensure great From 2cb4f31232c3f83706161f513c872688e26f2e1f Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Fri, 9 Apr 2021 22:16:04 +0100 Subject: [PATCH 3/5] change name from `CI` to `Coverage` --- .github/workflows/coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 67974d512..430a48369 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,4 +1,4 @@ -name: CI +name: Coverage # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch From 43ec2a530dc660fab31868c81b85fb0c74efe1a7 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Fri, 9 Apr 2021 22:17:20 +0100 Subject: [PATCH 4/5] change shield style --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b55046fa..45e1b84c7 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Discordeno follows [Semantic Versioning](https://semver.org/) [![Discord](https://img.shields.io/discord/785384884197392384?color=7289da&logo=discord&logoColor=dark)](https://discord.com/invite/5vBgXk3UcZ) ![Lint](https://github.com/discordeno/discordeno/workflows/Lint/badge.svg) ![Test](https://github.com/discordeno/discordeno/workflows/Test/badge.svg) -[![Coverage](https://img.shields.io/github/workflow/status/discordeno/discordeno/Coverage?style=flat-square)](https://github.com/discordeno/discordeno/actions) +[![Coverage](https://img.shields.io/github/workflow/status/discordeno/discordeno/Coverage)](https://github.com/discordeno/discordeno/actions) ## Features - **Secure & stable**: Discordeno is actively maintained to ensure great From cc84537644e09e17b83f32c2f32c0b050e04ce47 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Fri, 9 Apr 2021 22:20:58 +0100 Subject: [PATCH 5/5] wrong shield --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 45e1b84c7..d27b5e0b7 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Discordeno follows [Semantic Versioning](https://semver.org/) [![Discord](https://img.shields.io/discord/785384884197392384?color=7289da&logo=discord&logoColor=dark)](https://discord.com/invite/5vBgXk3UcZ) ![Lint](https://github.com/discordeno/discordeno/workflows/Lint/badge.svg) ![Test](https://github.com/discordeno/discordeno/workflows/Test/badge.svg) -[![Coverage](https://img.shields.io/github/workflow/status/discordeno/discordeno/Coverage)](https://github.com/discordeno/discordeno/actions) +[![Coverage](https://img.shields.io/codecov/c/gh/discordeno/discordeno)](https://codecov.io/gh/discordeno/discordeno) ## Features - **Secure & stable**: Discordeno is actively maintained to ensure great