File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,23 @@ jobs:
1414 steps :
1515 - uses : actions/checkout@v3
1616
17- - name : Install shellcheck
18- run : sudo apt-get update && sudo apt-get install -y shellcheck
17+ - name : Install dependencies
18+ run : |
19+ sudo apt-get update
20+ sudo apt-get install -y shellcheck kcov
1921
2022 - name : Check for syntax errors (lint)
2123 run : make lint
2224
23- - name : Run tests
24- run : make test
25+ - name : Run tests with coverage
26+ run : |
27+ mkdir -p coverage
28+ kcov --include-path=./lib_ini.sh coverage ./run_tests.sh
29+ echo "Coverage report generated"
30+
31+ - name : Upload coverage to Codecov
32+ uses : codecov/codecov-action@v3
33+ with :
34+ directory : ./coverage
35+ fail_ci_if_error : false
36+ verbose : true
Original file line number Diff line number Diff line change 11# Bash INI Parser
22
33[ ![ CI] ( https://github.com/lsferreira42/bash-ini-parser/actions/workflows/ci.yml/badge.svg )] ( https://github.com/lsferreira42/bash-ini-parser/actions/workflows/ci.yml )
4+ [ ![ codecov] ( https://codecov.io/gh/lsferreira42/bash-ini-parser/branch/main/graph/badge.svg )] ( https://codecov.io/gh/lsferreira42/bash-ini-parser )
45
56A robust shell script library for parsing and manipulating INI configuration files in Bash.
67
You can’t perform that action at this time.
0 commit comments