From dc845c0f4e2ef8b115cefbfdc475d15d5804fe66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Wed, 22 Dec 2021 22:30:59 +0300 Subject: [PATCH] chore(ci): create separate steps for regular and live tests --- .github/workflows/ci.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 21e48f4..0d1e590 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,16 +97,25 @@ jobs: tar -xzf cargo-tarpaulin-*.tar.gz mv cargo-tarpaulin ~/.cargo/bin/ - - name: Run tests + - name: Run tests [default] run: | + NO_COLOR=1 cargo tarpaulin --out Xml --verbose + mv cobertura.xml test-output.xml + + - name: Run tests [live] + - run: | sudo env "PATH=$PATH" "HOME=$HOME" NO_COLOR=1 \ - cargo tarpaulin --features live-tests --out Xml --verbose + cargo tarpaulin + --features live-tests + --out Xml --verbose + -- "test_systeroid" + mv cobertura.xml live-test-output.xml - name: Upload reports to codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v2 with: name: code-coverage-report - file: cobertura.xml + files: test-output.xml,live-test-output.xml flags: unit-tests fail_ci_if_error: true verbose: true