Skip to content

Commit

Permalink
first attempt with .yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
jdinovi committed Dec 21, 2023
1 parent a0a4ca2 commit b26025b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -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."

0 comments on commit b26025b

Please sign in to comment.