forked from kworkflow/kworkflow
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.06 KB
/
kcov.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Kcov test
on:
[push, pull_request]
jobs:
kcov-test:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 3
- name: Update the system
run: |
sudo apt update -y
- name: Install dependencies
run: |
sudo apt install -y kcov shunit2 bc sqlite3 bsdmainutils libxml-xpath-perl
- name: Prepare for tests
run: |
./run_tests.sh prepare
mkdir kcov_out/
git config --global user.email "[email protected]"
git config --global user.name "Kworkflow"
- name: Prepare for coverage test
run: |
./run_tests.sh prepare
- name: Kcov test
run: |
kcov --include-path=src,kw \
--exclude-pattern=src/bash_autocomplete.sh,src/help.sh \
kcov_out/ ./run_tests.sh --unit
- name: Upload coverage do codecov
run: |
bash <(curl -s https://codecov.io/bash) -s kcov_out/