From 6cb06b3e19260a1806456239fbbe4446ef24a29d Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sun, 1 Oct 2023 17:35:10 +0200 Subject: [PATCH 1/2] Client (unit tests) - Use rany's node --- source/birchwood/client/client.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/birchwood/client/client.d b/source/birchwood/client/client.d index 41a40dd..0d405af 100644 --- a/source/birchwood/client/client.d +++ b/source/birchwood/client/client.d @@ -1301,7 +1301,7 @@ public class Client : Thread //freenode: 149.28.246.185 //snootnet: 178.62.125.123 //bonobonet: fd08:8441:e254::5 - ConnectionInfo connInfo = ConnectionInfo.newConnection("worcester.community.networks.deavmi.assigned.network", 6667, "birchwood", "doggie", "Tristan B. Kildaire"); + ConnectionInfo connInfo = ConnectionInfo.newConnection("rany.irc.bnet.eu.org", 6667, "birchwood", "doggie", "Tristan B. Kildaire"); // Set the fakelag to 1 second (server kicks me for spam me thinks if not) connInfo.setFakeLag(1); From aca76f01e816cf355cd549bc47812995c37f64ae Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sun, 1 Oct 2023 17:38:23 +0200 Subject: [PATCH 2/2] Pipelines - Added code coverage support --- .github/workflows/d.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/d.yml b/.github/workflows/d.yml index 10e81ea..651688d 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 @@ -22,6 +22,11 @@ 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 @@ -29,4 +34,8 @@ 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: | + dub run doveralls -- -t ${{secrets.COVERALLS_REPO_TOKEN}}