do test with coverage, upload to codecov
@@ -80,12 +80,21 @@ jobs:
run: rustup component add clippy
- name: Run clippy
run: cargo clippy --release -- -D warnings
- - name: Tests
- run: time cargo test --all --release --verbose --locked
+
+ - name: Install tarpaulin
+ run: cargo install cargo-tarpaulin
+ - name: Test && Generate code coverage
+ run: cargo tarpaulin --all-features --workspace --locked --out Xml
+ - name: Upload to codecov.io
+ uses: codecov/codecov-action@v1
+ with:
+ # token: ${{secrets.CODECOV_TOKEN}} # not required for public repos
+ fail_ci_if_error: true
+
- name: Benchmarking tests
run: cd node && cargo test --release --features runtime-benchmarks -p pallet-exchange-benchmarking -p pallet-xyk -p pallet-multi-payment-benchmarking -p pallet-claims
- name: Build release
- run: time cargo build --release --verbose
+ run: time cargo build --release --quiet --locked
- name: Version info
run: ./target/release/hydra-dx --version
- name: Upload release binary
