From fe5f05d53259a21e78cd57fccbfcaaec6a445a29 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Wed, 22 Nov 2023 16:20:23 +0200 Subject: [PATCH] Update d.yml --- .github/workflows/d.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/d.yml b/.github/workflows/d.yml index a20a0f0..22f2d7e 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 update + sudo apt install libcurl4-openssl-dev + - name: 'Build & Test' run: | # Build the project, with its main file included, without unittests @@ -29,4 +35,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}}