From b26025b494c171d14a011058ab56f12f3cab6ebd Mon Sep 17 00:00:00 2001 From: jdinovi Date: Thu, 21 Dec 2023 15:48:58 -0700 Subject: [PATCH] first attempt with .yml file --- .github/workflows/coverage.yml | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..543db95 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,35 @@ +name: Code Coverage + +# Run it when you push to all branches +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Build binary files + run: | + make build + + coverage: + needs: build + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install gcov + run: | + if ! command -v gcov &>/dev/null; then + echo "gcov is not installed. Installing..." + sudo apt-get update + sudo apt-get install -y gcov + fi + echo "gcov is installed." +