From 398c846f39cb24273ec96f4ec1eca2163b8db022 Mon Sep 17 00:00:00 2001 From: Nikita Zaporozhets Date: Wed, 24 Jan 2024 15:49:25 +0300 Subject: [PATCH] test cobertura gh workflow Signed-off-by: Nikita Zaporozhets --- .github/workflows/coverage.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 1ace8185..6a674d97 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -5,19 +5,19 @@ on: branches: - duty/codecov - develop -env: - CARGO_INCREMENTAL: 0 - SKIP_WASM_BUILD: 1 - LLVM_PROFILE_FILE: "sora2-%p-%m.profraw" - RUST_BACKTRACE: short - RUSTFLAGS: "-Cinstrument-coverage" + jobs: - consistency: + coverage: runs-on: ubuntu-latest container: image: sora2/substrate:env - + env: + CARGO_INCREMENTAL: 0 + SKIP_WASM_BUILD: 1 + LLVM_PROFILE_FILE: "sora2-%p-%m.profraw" + RUST_BACKTRACE: short + RUSTFLAGS: "-Cinstrument-coverage" steps: - name: Checkout code uses: actions/checkout@v2 @@ -47,7 +47,7 @@ jobs: # apt-get update # protobuf-compiler - - name: Build and test + - name: Test run: cargo test -r - name: Generate Cobertura report @@ -62,6 +62,6 @@ jobs: path: cobertura.xml - name: Upload to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file