mirror of
https://github.com/orhun/systeroid
synced 2024-07-09 04:06:06 +00:00
chore(ci): create separate steps for regular and live tests
This commit is contained in:
parent
ffae317d08
commit
dc845c0f4e
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user