Skip to content

Commit

Permalink
test cobertura gh workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Zaporozhets <zaporozhets@soramitsu.co.jp>
  • Loading branch information
Nikita Zaporozhets committed Jan 24, 2024
1 parent c973514 commit 398c846
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
# apt-get update
# protobuf-compiler

- name: Build and test
- name: Test
run: cargo test -r

- name: Generate Cobertura report
Expand All @@ -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 }}

0 comments on commit 398c846

Please sign in to comment.