File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -21,18 +21,29 @@ jobs:
2121 with :
2222 submodules : " true"
2323
24+ - name : Download dasel
25+ uses : wei/wget@v1
26+ with :
27+ args : -O test/bin/dasel https://github.com/TomWright/dasel/releases/download/v1.24.1/dasel_linux_arm64
28+ - name : Download yq
29+ uses : wei/wget@v1
30+ with :
31+ args : -O test/bin/yq https://github.com/mikefarah/yq/releases/download/v4.24.5/yq_linux_amd64
32+
33+ - run : |
34+ echo '/bin/chmod a+x test/bin/*' > ci_tests.sh
35+ echo 'exec kcov --include-path src/ codecov/ ./test/bats/bin/bats test/' >> ci_tests.sh
2436 - name : Run tests
2537 uses : docker://kcov/kcov:latest
2638 with :
27- args : kcov --include-path src/ codecov/ ./test/bats/ bin/bats test/
39+ args : / bin/sh ci_tests.sh
2840
2941 # https://github.com/particleflux/kcov-bats-circleci-codeclimate/blob/master/.circleci/config.yml
3042 - name : Prepare coverage report
3143 run : |2
32- _xml="$(ls -1 codecov/bats*/cobertura.xml | head -1)"
3344 sed -r \
3445 's#"bats"#"src"#;s#/github/workspace/##;s#<source>(.+)/</source>#<source>/github/workspace/</source>#' \
35- "$_xml " > coverage.xml
46+ "$(ls -1 codecov/bats*/cobertura.xml | head -1) " > coverage.xml
3647 - name : Upload coverage report
3748 uses : codecov/codecov-action@v2
3849 # https://github.com/SimonKagstrom/kcov/blob/master/doc/codecov.md
You can’t perform that action at this time.
0 commit comments