From 22ad30ad457d44365a58d9a38f5d1dc9b0bb82a8 Mon Sep 17 00:00:00 2001 From: Moritz Martinius Date: Mon, 25 Sep 2023 19:23:25 +0200 Subject: [PATCH] add unit test and coverage generation --- .gitea/workflows/build.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 5c0b268..d32847b 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -5,7 +5,8 @@ jobs: build: runs-on: ubuntu-latest steps: - - run: echo "Branch ${{ gitea.ref }} will be built for project ${{ gitea.repository }}." + - name: Starting action... + run: echo "Branch ${{ gitea.ref }} will be built for project ${{ gitea.repository }}." - name: Checkout branch uses: actions/checkout@v3 - name: Update package cache @@ -18,3 +19,7 @@ jobs: run: meson setup builddir -Db_coverage=true - name: build all targets run: ninja -C builddir + - name: run unit tests + run: ninja -C builddir test + - name: calculate coverage + run: ninja -C builddir coverage-text