From c8db81bf9cce65da802160f5eb07d67b1868af84 Mon Sep 17 00:00:00 2001 From: Utkarsh Bhatt Date: Fri, 22 Sep 2023 15:40:56 +0530 Subject: [PATCH] Adds unit-test to microceph CI Signed-off-by: Utkarsh Bhatt --- .github/workflows/tests.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 27ecfcec..9a89bbac 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,6 +36,26 @@ jobs: path: "*.snap" retention-days: 5 + unit-tests: + name: Run Unit tests + runs-on: ubuntu-22.04 + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Install dependencies + run: | + sudo add-apt-repository ppa:dqlite/dev + sudo apt-get update + sudo apt-get install -y libdqlite-dev golang-go + + - name: Run unit-tests + run: | + cd microceph + make check-unit + single-system-tests: name: Single node with encryption runs-on: ubuntu-22.04