Skip to content

Commit

Permalink
Add _get_config_* helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
danie1k committed Apr 15, 2022
1 parent 59fde10 commit fe89197
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,26 @@ jobs:
with:
submodules: "true"

- name: Download dasel
uses: wei/wget@v1
with:
args: -O test/bin/dasel https://github.com/TomWright/dasel/releases/download/v1.24.1/dasel_linux_arm64
- name: Download yq
uses: wei/wget@v1
with:
args: -O test/bin/yq https://github.com/mikefarah/yq/releases/download/v4.24.5/yq_linux_amd64

- name: Run tests
uses: docker://kcov/kcov:latest
with:
args: kcov --include-path src/ codecov/ ./test/bats/bin/bats test/
args: /bin/chmod a+x test/bin/* && kcov --include-path src/ codecov/ ./test/bats/bin/bats test/

# https://github.com/particleflux/kcov-bats-circleci-codeclimate/blob/master/.circleci/config.yml
- name: Prepare coverage report
run: |2
_xml="$(ls -1 codecov/bats*/cobertura.xml | head -1)"
sed -r \
's#"bats"#"src"#;s#/github/workspace/##;s#<source>(.+)/</source>#<source>/github/workspace/</source>#' \
"$_xml" > coverage.xml
"$(ls -1 codecov/bats*/cobertura.xml | head -1)" > coverage.xml
- name: Upload coverage report
uses: codecov/codecov-action@v2
# https://github.com/SimonKagstrom/kcov/blob/master/doc/codecov.md
Expand Down
Empty file added test/bin/.gitkeep
Empty file.

0 comments on commit fe89197

Please sign in to comment.