chore(ci): create separate steps for regular and live tests

This commit is contained in:
Orhun Parmaksız 2021-12-22 22:30:59 +03:00
parent ffae317d08
commit dc845c0f4e
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90

View File

@ -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