From a6b4eb9e36ea571b5ece992dc6304e2c876c0c9f Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 周一, 16 1月 2023 22:32:09 +0800
Subject: [PATCH] action: update lcov

---
 .github/workflows/ubuntu.yml |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index a587e67..0ddd13a 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -41,14 +41,13 @@
       run: make clean all test
     
     - name: lcov_capture
-      run: lcov --capture --directory . --output-file coverage.info
+      run: lcov --capture --directory libscpi/ --output-file lcov.info
 
     - name: lcov_cleanup
-      run: lcov --remove coverage.info 'test/*' --output-file coverage.info
-   
+      run: lcov --remove lcov.info '*/test/*' --output-file lcov.info
+
     - name: Coveralls
       uses: coverallsapp/github-action@master
       with:
         github-token: ${{ secrets.GITHUB_TOKEN }}
-        base-path: libscpi/
-        path-to-lcov: coverage.info
+        path-to-lcov: ./lcov.info

--
Gitblit v1.9.1