From a85285849f599f4aedbfdf27aa4088eee16a93d6 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Mon, 25 Sep 2023 13:50:09 +0200 Subject: [PATCH 1/6] Update d.yml --- .github/workflows/d.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/d.yml b/.github/workflows/d.yml index 10e81ea..a20a0f0 100644 --- a/.github/workflows/d.yml +++ b/.github/workflows/d.yml @@ -6,9 +6,9 @@ name: D on: push: - branches: [ "master" ] + branches: [ "**" ] pull_request: - branches: [ "master" ] + branches: [ "**" ] permissions: contents: read From 50acc144de51daaa0e952b9d3ebbce1ce71d12ed Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Mon, 25 Sep 2023 13:52:00 +0200 Subject: [PATCH 2/6] Update d.yml --- .github/workflows/d.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/d.yml b/.github/workflows/d.yml index a20a0f0..0c440c8 100644 --- a/.github/workflows/d.yml +++ b/.github/workflows/d.yml @@ -22,6 +22,12 @@ jobs: - uses: actions/checkout@v3 - uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7 + + - name: Install Doveralls (code coverage tool) + run: | + dub fetch doveralls + sudo apt install libcurl4-openssl-dev + - name: 'Build & Test' run: | # Build the project, with its main file included, without unittests From 0944b9a6ae25c08b632745f2ecbc00c79ec9d363 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Mon, 25 Sep 2023 13:52:39 +0200 Subject: [PATCH 3/6] Update d.yml --- .github/workflows/d.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/d.yml b/.github/workflows/d.yml index 0c440c8..e6c86b0 100644 --- a/.github/workflows/d.yml +++ b/.github/workflows/d.yml @@ -36,3 +36,7 @@ jobs: # In this mode, `mainSourceFile` is excluded and `version (unittest)` are included # See https://dub.pm/package-format-json.html#configurations dub test --compiler=$DC + + - name: Coverage upload + run: | + dub run doveralls -- -t ${{secrets.COVERALLS_REPO_TOKEN}} From cffb5dbdf0ca7279b7e08770d38741bf9ff74cdf Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Mon, 25 Sep 2023 13:53:09 +0200 Subject: [PATCH 4/6] Update d.yml --- .github/workflows/d.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/d.yml b/.github/workflows/d.yml index e6c86b0..2fd34ed 100644 --- a/.github/workflows/d.yml +++ b/.github/workflows/d.yml @@ -35,7 +35,7 @@ jobs: # Build and run tests, as defined by `unittest` configuration # In this mode, `mainSourceFile` is excluded and `version (unittest)` are included # See https://dub.pm/package-format-json.html#configurations - dub test --compiler=$DC + dub test --compiler=$DC --coverage - name: Coverage upload run: | From 46fcb3c5d2fc5cccc9c1d110e98142a8cc07e6cd Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Mon, 25 Sep 2023 13:55:59 +0200 Subject: [PATCH 5/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 96613e0..04e39fc 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ doap ==== -[![D](https://github.com/deavmi/doap/actions/workflows/d.yml/badge.svg?branch=master)](https://github.com/deavmi/doap/actions/workflows/d.yml) +[![D](https://github.com/deavmi/doap/actions/workflows/d.yml/badge.svg?branch=master)](https://github.com/deavmi/doap/actions/workflows/d.yml) [![Coverage Status](https://coveralls.io/repos/github/deavmi/doap/badge.svg?branch=master)](https://coveralls.io/github/deavmi/doap?branch=master) **doap** is a CoAP library for the D programming language. From d9fb911424bd2dd8c998e50a2fabad7fdbf7b360 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Mon, 25 Sep 2023 13:57:01 +0200 Subject: [PATCH 6/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 04e39fc..8e4281d 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Documentation is available [here](https://doap.dpldocs.info/). ### Making a request -``` +```d CoapClient client = new CoapClient("coap.me", 5683); CoapRequestFuture future = client.newRequestBuilder()