From fe89197c76de2d76caefac24a3e6cb641da09df0 Mon Sep 17 00:00:00 2001 From: Daniel Kuruc Date: Fri, 15 Apr 2022 21:41:20 +0200 Subject: [PATCH] Add `_get_config_*` helpers --- .github/workflows/test.yml | 14 +++++++++++--- test/bin/.gitkeep | 0 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 test/bin/.gitkeep diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f73697d..eda454b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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#(.+)/#/github/workspace/#' \ - "$_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 diff --git a/test/bin/.gitkeep b/test/bin/.gitkeep new file mode 100644 index 0000000..e69de29